You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been suggested to restrict which users can add certain labels to PRs. For example, some breaking change labels should only be applied by the breaking change board.
Implementation options:
GitHub Action that triggers on pull_request:labeled event, checks user, and removes label if user is not allowed. Simpler, but could be circumvented, say if the action fails to run once when the label was added.
GitHub Action that uses timeline events API (https://octokit.github.io/rest.js/v18/#issues-list-events-for-timeline) to block PRs, if the most recent timeline event for a label was added by a disallowed user. Slightly more complex to implement, but more reliable since it would block until it confirms the label was added by the correct user.
The text was updated successfully, but these errors were encountered:
It has been suggested to restrict which users can add certain labels to PRs. For example, some breaking change labels should only be applied by the breaking change board.
Implementation options:
The text was updated successfully, but these errors were encountered: