Skip to content

Commit 22568db

Browse files
authored
Merge pull request #1 from ssulei7/create-release-drafter
adding release drafter
2 parents dce4a0c + cbd054a commit 22568db

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

.github/release-drafter.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name-template: 'v$RESOLVED_VERSION'
3+
tag-template: 'v$RESOLVED_VERSION'
4+
template: |
5+
# Changelog
6+
$CHANGES
7+
8+
See details of [all code changes](https://github.com/github/super-linter/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release
9+
categories:
10+
- title: '🚀 Features'
11+
labels:
12+
- 'feature'
13+
- 'enhancement'
14+
- title: '🐛 Bug Fixes'
15+
labels:
16+
- 'fix'
17+
- 'bugfix'
18+
- 'bug'
19+
- title: '🧰 Maintenance'
20+
labels:
21+
- 'infrastructure'
22+
- 'automation'
23+
- 'documentation'
24+
- title: '🏎 Performance'
25+
label: 'performance'
26+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
27+
version-resolver:
28+
major:
29+
labels:
30+
- 'type: breaking'
31+
minor:
32+
labels:
33+
- 'type: enhancement'
34+
patch:
35+
labels:
36+
- 'type: bug'
37+
- 'type: maintenance'
38+
- 'type: documentation'
39+
default: patch

.github/workflows/draft-release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
####################################
3+
####################################
4+
## Draft releases on Push to main ##
5+
####################################
6+
####################################
7+
name: Release Drafter
8+
9+
###########################
10+
# Start on push to main #
11+
###########################
12+
on:
13+
push:
14+
# branches to consider in the event; optional, defaults to all
15+
branches:
16+
- main
17+
18+
#################
19+
# Start the job #
20+
#################
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
update_release_draft:
26+
permissions:
27+
contents: write # for release-drafter/release-drafter to create a github release
28+
pull-requests: write # for release-drafter/release-drafter to add label to PR
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 60
31+
steps:
32+
# Drafts your next Release notes as Pull Requests are merged into "main"
33+
- uses: release-drafter/release-drafter@v5
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)