Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Conventional Commit Labels
on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
assign-labels:
runs-on: ubuntu-latest
name: Assign labels in pull request
if: github.event.pull_request.merged == false
steps:
- name: Execute assign labels
id: action-assign-labels
uses: mauroalderete/action-assign-labels@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'fix'
nouns: ['fix']
labels: ['fix']
- type: 'feat'
nouns: ['feat']
labels: ['feat']
- type: 'build'
nouns: ['build']
labels: ['build']
- type: 'chore'
nouns: ['chore']
labels: ['chore']
- type: 'ci'
nouns: ['ci']
labels: ['ci']
- type: 'docs'
nouns: ['docs']
labels: ['docs']
- type: 'style'
nouns: ['style']
labels: ['style']
- type: 'refactor'
nouns: ['refactor']
labels: ['refactor']
- type: 'perf'
nouns: ['perf']
labels: ['perf']
- type: 'test'
nouns: ['test']
labels: ['test']

Loading