thollander / actions-comment-pull-request

GitHub action to comment pull request
MIT License
317 stars 82 forks source link

Add only-delete option #371

Open mlahargou opened 5 months ago

mlahargou commented 5 months ago

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: https://github.com/thollander/actions-comment-pull-request/issues/361

cc @liamnichols

mlahargou commented 5 months ago

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 commented 3 months ago

@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.