- repo-token: your github secret token
- config-pathname : pathname of your config file
name: PR Branch Labeler
on: pull_request
jobs:
label_prs:
runs-on: ubuntu-latest
steps:
- name: Label PRs
uses: aeong98/Pull-Request-Labeler@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
config-pathname: .github/pr-branch-labeler.yml
develop:
base: ["develop/*", "develop*", "develop"]
release:
base: ["main"]
feature:
head: ["feature/*", "feat/*"]
fix:
head: ["bugfix/*", "fix/*"]
hotfix:
head: "hotfix/*"
enhancement:
base: ["feature/*"]
head: ["enhance/*", "enhancement/*"]