Skip to content

Commit 5f6baf6

Browse files
authored
Merge pull request #61 from metagenlab/drafter
feat: add release drafter
2 parents cae52c1 + 5c1a678 commit 5f6baf6

2 files changed

Lines changed: 146 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name-template: 'MeSS v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- 'feature'
8+
- 'enhancement'
9+
- 'feat'
10+
- 'new'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'fix'
14+
- 'bugfix'
15+
- 'bug'
16+
- 'patch'
17+
- title: '📚 Documentation'
18+
labels:
19+
- 'documentation'
20+
- 'docs'
21+
- title: '🔧 Maintenance'
22+
labels:
23+
- 'chore'
24+
- 'dependencies'
25+
- 'refactor'
26+
- 'cleanup'
27+
- title: '⚡ Performance'
28+
labels:
29+
- 'performance'
30+
- 'optimization'
31+
- title: '🧪 Testing'
32+
labels:
33+
- 'test'
34+
- 'testing'
35+
- title: '💥 Breaking Changes'
36+
labels:
37+
- 'breaking'
38+
- 'breaking-change'
39+
40+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
41+
change-title-escapes: '\<*_&'
42+
43+
version-resolver:
44+
major:
45+
labels:
46+
- 'major'
47+
- 'breaking'
48+
- 'breaking-change'
49+
minor:
50+
labels:
51+
- 'minor'
52+
- 'feature'
53+
- 'enhancement'
54+
- 'feat'
55+
- 'new'
56+
patch:
57+
labels:
58+
- 'patch'
59+
- 'fix'
60+
- 'bugfix'
61+
- 'bug'
62+
- 'chore'
63+
- 'dependencies'
64+
- 'documentation'
65+
- 'docs'
66+
default: patch
67+
68+
template: |
69+
# [MeSS v$RESOLVED_VERSION - $DATE](https://github.com/metagenlab/MeSS/releases/tag/v$RESOLVED_VERSION)
70+
71+
$CHANGES
72+
73+
---
74+
75+
**Full Changelog**: https://github.com/metagenlab/MeSS/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
76+
77+
exclude-labels:
78+
- 'skip-changelog'
79+
- 'duplicate'
80+
- 'question'
81+
- 'invalid'
82+
- 'wontfix'
83+
84+
include-pre-releases: false
85+
86+
replacers:
87+
- search: '/MeSS/g'
88+
replace: 'MeSS'
89+
- search: '/mess/g'
90+
replace: 'MeSS'
91+
92+
autolabeler:
93+
- label: 'documentation'
94+
files:
95+
- '*.md'
96+
- 'docs/**/*'
97+
- 'mkdocs.yml'
98+
- label: 'bug'
99+
branch:
100+
- '/fix\/.+/'
101+
- '/bugfix\/.+/'
102+
- '/hotfix\/.+/'
103+
- label: 'feature'
104+
branch:
105+
- '/feature\/.+/'
106+
- '/feat\/.+/'
107+
- label: 'chore'
108+
files:
109+
- '.github/**/*'
110+
- '*.yml'
111+
- '*.yaml'
112+
- 'pyproject.toml'
113+
- 'setup.py'
114+
- 'requirements*.txt'
115+
- label: 'dependencies'
116+
files:
117+
- 'requirements*.txt'
118+
- 'pyproject.toml'
119+
- 'setup.py'
120+
- 'workflow/envs/**/*'
121+
- label: 'test'
122+
files:
123+
- 'tests/**/*'
124+
- '*test*.py'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: release-drafter/release-drafter@v6
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)