Skip to content

Commit 92c18c1

Browse files
committed
add release drafter
add release drafter Signed-off-by: laminar <fangtian@kubesphere.io>
1 parent bb3457d commit 92c18c1

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/release-drafter.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
template: |
4+
# What's Changed
5+
$CHANGES
6+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
7+
8+
🎉 Thanks to all contributors $CONTRIBUTORS
9+
categories:
10+
- title: '💥 Breaking'
11+
label: 'type: breaking'
12+
- title: '✨ New'
13+
label: 'type: feature'
14+
- title: '🐛 Bug Fixes'
15+
label: 'type: bug'
16+
- title: '🏗️ Maintenance'
17+
label: 'type: maintenance'
18+
- title: '👷 CI/CD'
19+
label: 'type: cicd'
20+
- title: '📝 Documentation'
21+
label: 'type: docs'
22+
- title: 'Other changes'
23+
- title: '🏷️ Dependency Updates'
24+
label: 'type: dependencies'
25+
collapse-after: 5
26+
27+
version-resolver:
28+
major:
29+
labels:
30+
- 'type: breaking'
31+
minor:
32+
labels:
33+
- 'type: feature'
34+
patch:
35+
labels:
36+
- 'type: bug'
37+
- 'type: maintenance'
38+
- 'type: docs'
39+
- 'type: dependencies'
40+
- 'type: cicd'
41+
42+
exclude-labels:
43+
- 'skip-changelog'

.github/workflows/release-note.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# Only following types are handled by the action, but one can default to all as well
9+
types: [ opened, reopened, synchronize ]
10+
path-ignores:
11+
- 'CHANGELOG.md'
12+
- 'RELEASE.md'
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)