Skip to content

Commit

Permalink
Automatic versioning with release drafter (#346)
Browse files Browse the repository at this point in the history
Co-authored-by: Joakim Sørensen <[email protected]>
  • Loading branch information
marcelveldt and ludeeus committed Jul 11, 2023
1 parent fcae01b commit e815ff3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
change-template: "- #$NUMBER - $TITLE (@$AUTHOR)"
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
change-template: '- #$NUMBER - $TITLE (@$AUTHOR)'
categories:
- title: "⚠ Breaking Changes"
labels:
- "breaking-change"
- title: "⬆️ Dependencies"
- 'breaking-change'
- title: '⬆️ Dependencies'
collapse-after: 1
labels:
- "dependencies"
- 'dependencies'
- 'ci'
template: |
## What’s Changed
$CHANGES
version-resolver:
major:
labels:
- 'breaking-change'
minor:
labels:
- 'new-feature'
- 'enhancement'
default: patch
23 changes: 23 additions & 0 deletions .github/workflows/pr-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: PR Labels

# yamllint disable-line rule:truthy
on:
pull_request:
types:
- synchronize
- labeled
- unlabeled
branches:
- main

jobs:
pr_labels:
name: Verify
runs-on: ubuntu-latest
steps:
- name: 🏷 Verify PR has a valid label
uses: ludeeus/[email protected]
with:
labels: >-
breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies

0 comments on commit e815ff3

Please sign in to comment.