Skip to content

Commit 0abb396

Browse files
Add release drafter for releases
1 parent a8f021f commit 0abb396

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name-template: "v$NEXT_MAJOR_VERSION.$NEXT_MINOR_VERSION.$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_MAJOR_VERSION.$NEXT_MINOR_VERSION.$NEXT_PATCH_VERSION"
3+
4+
exclude-labels:
5+
- skip-release
6+
7+
categories:
8+
- title: "🌟 New Features"
9+
title-regex: "/(Add|Adds|Create|New|Support|Implement)/i"
10+
- title: "🔧 Fixed"
11+
title-regex: "/(fix|fixed)/i"
12+
- title: "📖 Docs"
13+
title-regex: "/(Doc|Docs)/i"
14+
- title: "🧹 Tidying Up"
15+
title-regex: "/(Clean|Update|Remove|Refactor|Redownload)/i"
16+
- title: "🎙️ Testing testing testing"
17+
title-regex: "/(test|testing)/i"
18+
19+
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
20+
change-title-escapes: '\<*_&'
21+
22+
template: |
23+
## Changes in this Release
24+
25+
$CHANGES
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
pull-requests: read
20+
steps:
21+
- uses: release-drafter/release-drafter@v6
22+
with:
23+
config-name: release-drafter.yml
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)