jamesvphan
jamesvphan

Reputation: 1975

Automatically apply labels to github pull requests

I'm trying to find some resources on how to add a label automatically when creating a new pull request. So far, I haven't found any documentation on this. Any pointers?

Upvotes: 10

Views: 12272

Answers (1)

bitoiu
bitoiu

Reputation: 7464

It really depends what and when you want to label those pull requests with. Since there is no rule engine directly on GitHub for this to auto-label issues or pull requests you have 2 options:

  1. Find something on the GitHub Marketplace tagged with label. If nothing suits you'll have to go for option 2.
  2. Write your own script, GitHub Application or GitHub Action that interfaces with the GitHub API to set those labels based on your specific requirements.

Upvotes: 4

Related Questions