Skip to content

Commit a41514e

Browse files
committed
add release-drafter config and PR workflow
1 parent 6899668 commit a41514e

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.github/release-drafter.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name-template: 'v$INPUT_VERSION'
2+
tag-template: 'v$INPUT_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '🧰 Maintenance'
14+
label: 'chore'
15+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
16+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
17+
template: |
18+
## Changes
19+
20+
$CHANGES
21+
include-labels:
22+
- 'feature'
23+
- 'enhancement'
24+
- 'fix'
25+
- 'bugfix'
26+
- 'bug'
27+
- 'chore'
28+
version-resolver:
29+
major:
30+
labels:
31+
- 'major'
32+
minor:
33+
labels:
34+
- 'minor'
35+
patch:
36+
labels:
37+
- 'patch'
38+
default: patch

.github/workflows/pr_label.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
7+
jobs:
8+
label:
9+
name: Check Labels
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Has semver label
13+
uses: jesusvasquez333/[email protected]
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
valid-labels: 'major, minor, patch'
17+
pull-request-number: ${{ github.event.pull_request.number }}
18+
disable-reviews: true
19+
20+
- name: Has change type label
21+
uses: jesusvasquez333/[email protected]
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
valid-labels: 'feature, enhancement, fix, bugfix, bug, chore'
25+
pull-request-number: ${{ github.event.pull_request.number }}
26+
disable-reviews: true

0 commit comments

Comments
 (0)