labeler icon indicating copy to clipboard operation
labeler copied to clipboard

Support for custom labels/patterns by users

Open Cnordbo opened this issue 3 years ago • 1 comments

Feature suggestion: Using bots like dependabot or security advisory bots that automatically creates PRs with suggested fixes/updates, it would be nice to be able to ignore PRs from those users globally or per label.

Issue Example: Dependabot issues a PR for an updated package.

Labeler: Reports the PR as "Missing tests"

Conclusion: You don`t test your dependencies to see if they run OK. And so its safe to say that this label does not belong on this PR.

Workaround: Dont include the label if there is a change to package.json in the PR.

Cons for workaround: PRs that update/add/remove a package in their PR as a result of a change, will be able to not get flagged as missing tests.

Cnordbo avatar Dec 07 '20 11:12 Cnordbo

Not sure if this is going to solve your use-case, but you should be able to ignore an actor with:

if: github.actor != 'github-actions[bot]'

or

if: github.actor != 'dependabot[bot]'

Conditionals can be used both at a step level or a job level.

raisedadead avatar Feb 02 '21 17:02 raisedadead

Hello everyone! Thank you for the feature request. You can use ! character to negate the pattern. Please see the documentation for more examples. I’m closing the issue. Feel free to contact us if you have any concerns.

MaksimZhukov avatar Dec 12 '22 07:12 MaksimZhukov