Skip to content

Conversation

@mlahargou
Copy link
Contributor

At a glance, I expected the mode: delete option to just delete a comment.
Instead, the delete mode deletes comments during cleanup.

This adds functionality to delete comments immediately. In order to be
backward compatible, I left the delete mode unchanged. I added
an only-delete mode which just deletes comments immediately.

Ref: #361

cc @liamnichols

You can now pass `only-delete` which just deletes the comment if it
exists. If it doesn't exist, it will log a message and return.
@mlahargou
Copy link
Contributor Author

mlahargou commented Apr 4, 2024

I'm assuming CI is failing because I'm a first-time contributor to this repo so the token doesn't have perms to comment on this PR.

@mezpahlan
Copy link

@thollander any chance you could have a look at this please. It's exactly what we need. Would be nice to have this included in the action.

@thollander
Copy link
Owner

Thanks for the contribution !
I think we can make a breaking change for this. It could also be the good time to do #386.
Indeed, having delete working as developed here makes sense and replacing the current delete by a delete-on-completion would make more sense.

@mlahargou
Copy link
Contributor Author

Funny, I was just looking at this PR again today. We no longer use this package, but anyone can feel free to edit this or make a new PR with the suggested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants