Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add Github labels based on PR title #2914

Merged
merged 9 commits into from
Dec 11, 2024
22 changes: 22 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,25 @@ categories:
- 'test flakiness'
- title: 📦 Dependency updates
label: 'dependencies'
autolabeler:
- label: 'breaking change'
title:
- '/^break(\(.+\))?\:/i'
mdelapenya marked this conversation as resolved.
Show resolved Hide resolved
- label: 'security'
title:
- '/^security(\(.+\))?\:/i'
mdelapenya marked this conversation as resolved.
Show resolved Hide resolved
- label: 'feature'
title:
- '/^feat(\(.+\))?\:/i'
- label: 'bug'
title:
- '/^(fix|bug)(\(.+\))?\:/i'
- label: 'documentation'
title:
- '/^docs(\(.+\))?\:/i'
- label: 'chore'
title:
- '/^chore(\(.+\))?\:/i'
- label: 'dependencies'
title:
- '/^deps(\(.+\))?\:/i'
1 change: 1 addition & 0 deletions .github/workflows/conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
doesn't start with an uppercase character.
types: |
break
security
mdelapenya marked this conversation as resolved.
Show resolved Hide resolved
fix
feat
bug
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
push:
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]

permissions:
contents: read
Expand All @@ -17,5 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v5.19.0
with:
disable-autolabeler: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading