Skip to content

Commit 54244ba

Browse files
authored
Update Release Drafter workflow (#740)
1 parent bd3a244 commit 54244ba

File tree

3 files changed

+32
-20
lines changed

3 files changed

+32
-20
lines changed

.github/labeler.yml

-20
This file was deleted.

.github/release-drafter.yml

+20
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,23 @@ template: |
4949
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
5050
5151
Thanks to $CONTRIBUTORS for making this release possible.
52+
53+
autolabeler:
54+
- label: '📒 Documentation'
55+
matcher:
56+
title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b'
57+
- label: '☢️ Bug'
58+
matcher:
59+
title: '\b(fix|race|bug|missing|correct)\b'
60+
- label: '🧹 Updates'
61+
matcher:
62+
title: '\b(improve|update|update|refactor|deprecated|remove|unused|test)\b'
63+
- label: '🤖 Dependencies'
64+
matcher:
65+
title: '\b(bumb|bdependencies)\b'
66+
- label: '✏️ Feature'
67+
matcher:
68+
title: '\b(feature|feat|create|implement|add)\b'
69+
- label: '🤔 Question'
70+
matcher:
71+
title: '\b(question|how)\b'

.github/workflows/release-drafter.yml

+12
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,23 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request: # Autolabel PR's
8+
types: [opened, reopened, synchronize]
9+
pull_request_target: # Autolabel PR's from forks
10+
types: [opened, reopened, synchronize]
711

812
jobs:
913
update_release_draft:
14+
permissions:
15+
# write permission is required to create a github release
16+
contents: write
17+
# write permission is required for autolabeler
18+
# otherwise, read permission is required at least
19+
pull-requests: write
1020
runs-on: ubuntu-latest
1121
steps:
1222
- uses: release-drafter/release-drafter@v5
23+
with:
24+
commitish: main
1325
env:
1426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)