github / privileged-requester

Privileged Requester Action
MIT License
15 stars 1 forks source link

Prevent Duplicate Approvals #125

Closed GrantBirki closed 9 months ago

GrantBirki commented 9 months ago

Prevent Duplicate Approvals

Currently, if this workflow is run multiple times or re-triggered for any reason, it will continuously add approvals to a pull request. This is messy and creates un-wanted noise on a pull request. This PR makes adjustments to the code so that if a PR is already approved by this Action, it will log that as the result and exit; without making duplicate approvals.