Skip to content

Commit

Permalink
ci: assign label based on conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Dec 3, 2024
1 parent 983e9a9 commit 44538ed
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Conventional Commit Labels

on:
pull_request:
branches: [frc/abelaction]
types:
[opened, reopened, labeled, unlabeled]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: Execute assign labels
id: action-assign-labels
uses: mauroalderete/[email protected]
with:
pull-request-number: ${{ github.event.pull_request.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
labels: ['bug']
- type: 'feature'
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
labels: ['feature']
- type: 'breaking_change'
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
labels: ['BREAKING CHANGE']
- type: 'docs'
nouns: ['DOCS', 'Docs', 'docs']
labels: ['docs']
- type: 'refactor'
nouns: ['REFACTOR', 'Refactor', 'refactor']
labels: ['refactor']
- type: 'test'
nouns: ['TEST', 'Test', 'test']
labels: ['test']
- type: 'style'
nouns: ['STYLE', 'Style', 'style']
labels: ['style']
- type: 'chore'
nouns: ['CHORE', 'Chore', 'chore']
labels: ['chore']
- type: 'ci'
nouns: ['CI', 'Ci', 'ci']
labels: ['ci']
- type: 'perf'
nouns: ['PERF', 'Perf', 'perf']
labels: ['perf']

0 comments on commit 44538ed

Please sign in to comment.