v1.0.0
This is a GitHub Action that automatically applies labels to your PRs based on branch name patterns like feature/*
or fix/*
.
Usage
Add .github/main.workflow
with the following:
workflow "Add label to PR" {
on = "pull_request"
resolves = "PR Labeler"
}
action "PR opened filter" {
uses = "actions/bin/filter@master"
args = "action opened"
}
action "PR Labeler" {
needs = "PR opened filter"
uses = "TimonVS/pr-labeler@master"
secrets = ["GITHUB_TOKEN"]
}
Configuration
Configure by creating a .github/pr-labeler.yml
file.
For example:
feature: ['feature/*', 'feat/*']
fix: fix/*
chore: chore/*
Then if a pull request is opened with the branch name feature/218-add-emoji-support
the Action will automatically apply the feature
label.