Skip to content

Commit ea285d9

Browse files
authored
添加发布日志工作流 (Richasy#151)
* 添加发布日志工作流 * Update release-drafter.yml
1 parent 2e4892f commit ea285d9

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/release-drafter.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
template: |
2+
## 更改记录
3+
4+
$CHANGES
5+
name-template: 'v$RESOLVED_VERSION 🌈'
6+
tag-template: 'v$RESOLVED_VERSION'
7+
categories:
8+
- title: '🚀 功能'
9+
labels:
10+
- '功能 💡'
11+
- title: '🐛 Bug 修复'
12+
labels:
13+
- 'bug 🐛'
14+
- '操作与体验 🧤'
15+
- 'bug'
16+
- title: '🧰 管理与维护'
17+
label: '维护 ⚒️'
18+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
19+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.

.github/workflows/release-drafter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
13+
jobs:
14+
update_release_draft:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
- uses: release-drafter/release-drafter@v5
19+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
20+
# with:
21+
# config-name: my-config.yml
22+
# disable-autolabeler: true
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)