Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
feat: generate release notes (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheibal authored May 6, 2021
1 parent 5b4c670 commit 32ae1fd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci-release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ci-release-notes
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: release notes
run: |
TAG=${GITHUB_REF/refs\/tags\/}
npx github-release-notes release --override --tags ${TAG}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

40 changes: 40 additions & 0 deletions .grenrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = {
"dataSource": "prs",
"prefix": "",
"onlyMilestones": false,
"groupBy": {
"Enhancements": [
"enhancement",
"internal",
"feat",
"feature",
"code improvement"
],
"Bug Fixes": [
"fix",
"bug"
],
"Documentation": [
"doc",
"documentation"
],
"Others": [
"other"
]
},
"ignoreIssuesWith": [
"wontfix",
"duplicate",
"chore"
],
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{name}} [{{text}}]({{url}})",
noLabel: "other",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n"
}
}

0 comments on commit 32ae1fd

Please sign in to comment.