Skip to content

Commit

Permalink
chore: configure release autolabeler
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdonenfeld committed Oct 31, 2022
1 parent af5efcc commit f2d0d17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name-template: 'v$RESOLVED_VERSION 🌈'
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
change-template: '- #$NUMBER $TITLE @$AUTHOR'
sort-direction: ascending
categories:

- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- 'feat'

- title: '🐛 Bug Fixes'
labels:
Expand All @@ -34,12 +34,23 @@ template: |
$CHANGES
## ⭐️ Thank you so much for helping out!
## ⭐️ Thank you for helping out!
$CONTRIBUTORS
autolabeler:
- label: 'bug'
title:
- '/bug/i'
- '/fix/i'
branch:
- '/fix\/.+/'
- label: 'enhancement'
branch:
- '/feature\/.+/'
title:
- '/feat/i'
- '/feature/i'
- label: 'patch'
branch:
- '/patch\/.+/'
title:
- '/patch/i'
9 changes: 9 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ on:
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
name: Update release draft
runs-on: ubuntu-latest
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
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit f2d0d17

Please sign in to comment.