Conventional Commits (#1116)

* chore: add conventional-commits

* Use branch for conventional commits

* Remove dupe workflow 🔨
This commit is contained in:
Jamil
2022-11-16 08:28:51 -08:00
committed by GitHub
parent cc280dae50
commit afe50ad248
3 changed files with 36 additions and 1 deletions

11
.github/pr-labeler.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
feature: ['feat/*', 'feature/*']
chore: ['chore/*']
bug: ['fix/*', 'bug/*']
build: ['build/*']
ci: ['ci/*']
docs: ['docs/*']
style: ['style/*']
refactor: ['refactor/*']
perf: ['perf/*']
test: ['test/*']
revert: ['revert/*']

20
.github/workflows/pr_labeler.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: PR Labeler
on:
pull_request:
types: [opened]
permissions:
contents: read
jobs:
pr-labeler:
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:
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}