Skip to content

Commit 01c612e

Browse files
authored
Merge pull request http-party#750 from http-party/release-drafter
Add and configure release-drafter
2 parents 1d5ec57 + 0d3783e commit 01c612e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/release-drafter.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
4+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
5+
change-title-escapes: '\<*_&'
6+
7+
categories:
8+
- title: 'Features'
9+
labels:
10+
- 'feature'
11+
- 'enhancement'
12+
- title: 'Bug Fixes'
13+
labels:
14+
- 'fix'
15+
- 'bug'
16+
- title: 'Other changes'
17+
labels:
18+
- 'dependencies'
19+
- 'documentation'
20+
21+
exclude-labels:
22+
- "skip-changelog"
23+
- "maintenance"
24+
- "trivial"
25+
26+
version-resolver:
27+
major:
28+
labels:
29+
- 'major version'
30+
minor:
31+
labels:
32+
- 'minor version'
33+
patch:
34+
labels:
35+
- 'patch version'
36+
default: patch
37+
38+
template: |
39+
## What’s Changed
40+
41+
$CHANGES

.github/workflows/release-drafter.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 to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
permissions:
12+
contents: write
13+
pull-requests: read
14+
if: github.repository == 'http-party/http-server'
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+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)