Skip to content

Commit dfee4f3

Browse files
authored
Add release drafter (#2)
1 parent 49bad56 commit dfee4f3

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/release-draft-template.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name-template: 'v$RESOLVED_VERSION 🎵'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
exclude-labels:
4+
- 'skip-changelog'
5+
version-resolver:
6+
minor:
7+
labels:
8+
- 'breaking-change'
9+
default: patch
10+
categories:
11+
- title: 'Breaking changes'
12+
label: 'breaking-change'
13+
template: |
14+
## Changes
15+
16+
$CHANGES
17+
18+
Thanks again to $CONTRIBUTORS! 🎉
19+
no-changes-template: 'Changes are coming soon 😎'
20+
sort-direction: 'ascending'
21+
replacers:
22+
- search: '/(?:and )?@dependabot-preview(?:\[bot\])?,?/g'
23+
replace: ''

.github/workflows/release-drafter.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- bump-meilisearch-v*
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: release-drafter/release-drafter@v5
14+
with:
15+
config-name: release-draft-template.yml
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }}

0 commit comments

Comments
 (0)