Skip to content

Commit

Permalink
Automate PR tagging (#79)
Browse files Browse the repository at this point in the history
* Make release-drafter a bit more smarter
That way dependat bot PRs automatically increment the patch version

* Add pr-labeler integration to ease tagging of PRs
  • Loading branch information
sebastienvermeille authored Sep 2, 2023
1 parent 2bcdadc commit 1641fbf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
feature: ['feature/*', 'feat/*']
bug: ['fix/*', 'bugfix/*', 'issue/*']
"CI/CD": ['cicd/*']
documentation: ['doc/*', 'documentation/*']
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ version-resolver:
major:
labels:
- 'major'
- 'new feature'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
- 'dependencies'
default: patch
template: |
## Changelog
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Labeler
on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
name: Automatic PR label suggestion
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value

0 comments on commit 1641fbf

Please sign in to comment.