Skip to content

Commit

Permalink
Update Release Drafter workflow (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby committed Sep 17, 2023
1 parent bd3a244 commit 54244ba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/labeler.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,23 @@ template: |
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
Thanks to $CONTRIBUTORS for making this release possible.
autolabeler:
- label: '📒 Documentation'
matcher:
title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b'
- label: '☢️ Bug'
matcher:
title: '\b(fix|race|bug|missing|correct)\b'
- label: '🧹 Updates'
matcher:
title: '\b(improve|update|update|refactor|deprecated|remove|unused|test)\b'
- label: '🤖 Dependencies'
matcher:
title: '\b(bumb|bdependencies)\b'
- label: '✏️ Feature'
matcher:
title: '\b(feature|feat|create|implement|add)\b'
- label: '🤔 Question'
matcher:
title: '\b(question|how)\b'
12 changes: 12 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@ on:
push:
branches:
- main
pull_request: # Autolabel PR's
types: [opened, reopened, synchronize]
pull_request_target: # Autolabel PR's from forks
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 54244ba

Please sign in to comment.