Skip to content

Commit 9324912

Browse files
authored
Merge pull request #69 from kuhnroyal/chore/release-handling
Automate changelog and release drafting
2 parents 8792b17 + b36c1eb commit 9324912

File tree

4 files changed

+105
-2
lines changed

4 files changed

+105
-2
lines changed

.github/release-drafter.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
categories:
4+
- title: '🔥 Breaking'
5+
labels:
6+
- 'breaking'
7+
- title: '🚀 Features'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'fix'
14+
- 'bugfix'
15+
- 'bug'
16+
- title: '🧰 Maintenance'
17+
labels:
18+
- 'chore'
19+
- 'infra'
20+
- title: '🧪 Experimental'
21+
labels:
22+
- 'experimental'
23+
exclude-labels:
24+
- 'skip-changelog'
25+
autolabeler:
26+
- label: 'chore'
27+
files:
28+
- '*.md'
29+
branch:
30+
- '/docs{0,1}\/.+/'
31+
- '/infra\/.+/'
32+
- label: 'bug'
33+
branch:
34+
- '/fix\/.+/'
35+
- '/bugfix\/.+/'
36+
- '/hotfix\/.+/'
37+
title:
38+
- '/fix/i'
39+
- '/bug/i'
40+
- label: 'enhancement'
41+
branch:
42+
- '/feature\/.+/'
43+
change-template: '- (#$NUMBER) $TITLE - (thanks to @$AUTHOR)'
44+
change-title-escapes: '\<*_&#@'
45+
version-resolver:
46+
major:
47+
labels:
48+
- 'major'
49+
minor:
50+
labels:
51+
- 'minor'
52+
patch:
53+
labels:
54+
- 'patch'
55+
default: patch
56+
template: |
57+
## Changes
58+
59+
$CHANGES
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Automates creation of Release Drafts using Release Drafter
2+
# More Info: https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc
3+
name: Release Drafter
4+
5+
on:
6+
push:
7+
branches:
8+
- develop
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
branches:
15+
- develop
16+
17+
jobs:
18+
update_release_draft:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: release-drafter/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Update CHANGELOG.md
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
update-changelog:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/[email protected]
11+
- name: Update changelog
12+
run: |
13+
npm install github-release-notes
14+
export GREN_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
15+
npm run overrideChangelog
16+
- name: Create Pull Request
17+
uses: peter-evans/[email protected]
18+
with:
19+
commit-message: Update changelog
20+
title: Update Changelog
21+
body: Update changelog to reflect release changes
22+
branch: update-changelog
23+
base: master

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# SonarQube Plugin for Flutter / Dart
2-
31
## 0.3.2
42

53
#### Breaking

0 commit comments

Comments
 (0)