Skip to content

Commit e815ff3

Browse files
marcelveldtludeeus
andauthored
Automatic versioning with release drafter (#346)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
1 parent fcae01b commit e815ff3

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

.github/release-drafter.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
change-template: "- #$NUMBER - $TITLE (@$AUTHOR)"
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
change-template: '- #$NUMBER - $TITLE (@$AUTHOR)'
24
categories:
35
- title: "⚠ Breaking Changes"
46
labels:
5-
- "breaking-change"
6-
- title: "⬆️ Dependencies"
7+
- 'breaking-change'
8+
- title: '⬆️ Dependencies'
79
collapse-after: 1
810
labels:
9-
- "dependencies"
11+
- 'dependencies'
12+
- 'ci'
1013
template: |
1114
## What’s Changed
1215
1316
$CHANGES
17+
version-resolver:
18+
major:
19+
labels:
20+
- 'breaking-change'
21+
minor:
22+
labels:
23+
- 'new-feature'
24+
- 'enhancement'
25+
default: patch

.github/workflows/pr-labels.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: PR Labels
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
pull_request:
7+
types:
8+
- synchronize
9+
- labeled
10+
- unlabeled
11+
branches:
12+
- main
13+
14+
jobs:
15+
pr_labels:
16+
name: Verify
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 🏷 Verify PR has a valid label
20+
uses: ludeeus/action-require-labels@1.0.0
21+
with:
22+
labels: >-
23+
breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies

0 commit comments

Comments
 (0)