Skip to content

Commit 66cf607

Browse files
authored
Merge pull request #300 from metabrainz/release-drafter
chore: add release drafter workflow
2 parents e151df8 + ccce9c6 commit 66cf607

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/release-drafter.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
template: |
2+
## :books: Changes since last version
3+
4+
$CHANGES
5+
6+
##### :clap: Many thanks to everyone who participated in this release :point_down:
7+
$CONTRIBUTORS
8+
9+
replacers:
10+
- search: '/BB-(\d+)/g'
11+
replace: 'https://tickets.metabrainz.org/browse/BB-$1'
12+
13+
categories:
14+
- title: '🚂 New features and bug fixes'
15+
- title: ':wrench: Maintenance'
16+
collapse-after: 3
17+
labels:
18+
- 'dependencies'
19+
20+
exclude-contributors:
21+
- 'dependabot'
22+
23+
version-resolver:
24+
major:
25+
labels:
26+
- 'major'
27+
minor:
28+
labels:
29+
- 'minor'
30+
patch:
31+
labels:
32+
- 'patch'
33+
default: patch
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow updates the release draft as PRs are merged
2+
name: Release drafter
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
8+
9+
jobs:
10+
update_release_draft:
11+
12+
permissions:
13+
# write permission is required to create a github release
14+
contents: write
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
20+
# Drafts the next Release notes
21+
- name: Release Drafter
22+
uses: release-drafter/release-drafter@v5
23+
with:
24+
config-name: release-drafter.yml
25+
disable-autolabeler: true
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)