-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from vshn/changelog
Add PR template and changelog generator
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Summary | ||
|
||
|
||
## Checklist | ||
|
||
- [ ] Try to isolate changes into separate PRs (to build a better changelog). | ||
- [ ] Categorize the PR by setting a good title and adding one of the labels: | ||
`change`, `decision`, `requirement/quality`, `requirement/functional`, `dependency` | ||
as they show up in the changelog | ||
- [ ] Link this PR to related issues if applicable. | ||
|
||
<!-- | ||
NOTE: | ||
- Remove items that do not apply. | ||
- These things are not required to open a PR and can be done afterwards, while the PR is open. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"categories": [ | ||
{ | ||
"title": "## ⚖️ Decisions", | ||
"labels": ["decision"] | ||
}, | ||
{ | ||
"title": "## 📕 Tutorials", | ||
"labels": ["tutorial"] | ||
}, | ||
{ | ||
"title": "## 🧾 Quality Requirements", | ||
"labels": ["requirement/quality"] | ||
}, | ||
{ | ||
"title": "## 📄 Functional Requirements", | ||
"labels": ["requirement/functional"] | ||
}, | ||
{ | ||
"title": "## 🛠️ Minor Changes", | ||
"labels": ["change"] | ||
}, | ||
{ | ||
"title": "## 🔗 Dependency Updates", | ||
"labels": ["dependency"] | ||
} | ||
], | ||
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Build changelog from PRs with labels | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v2 | ||
with: | ||
configuration: ".github/changelog-configuration.json" | ||
# PreReleases still get a changelog, but the next full release gets a diff since the last full release, | ||
# combining possible changelogs of all previous PreReleases in between. | ||
# PreReleases show a partial changelog since last PreRelease. | ||
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{steps.build_changelog.outputs.changelog}} | ||
prerelease: "${{ contains(github.ref, '-rc') }}" | ||
# Ensure target branch for release is "master" | ||
commit: master | ||
token: ${{ secrets.GITHUB_TOKEN }} |