Skip to content

Commit

Permalink
Add configuration for changelog action
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jul 19, 2023
1 parent 1e66d19 commit d9b64b4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Create release"

on:
push: # will be removed after test
branches:
- issue_#1
# workflow_dispatch:

env:
Expand Down Expand Up @@ -91,6 +93,7 @@ jobs:
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configurationJson: changelog_config.json
toTag: ${{ needs.version.outputs.RELEASE_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
34 changes: 34 additions & 0 deletions changelog_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["enhancement"],
"empty_content": "No new features today 😢"
},
{
"title": "## 🐛 Fixes",
"labels": ["fix"],
"empty_content": "🤔 No bugs at all?"
},
{
"title": "## 🧰 CI/CD",
"labels": ["ci/cd"]
}

],
"ignore_labels": [
"ignore"
],
"sort": {
"order": "ASC",
"on_property": "mergedAt"
},
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{ '${{UNCATEGORIZED}}' }}\n</details>\n\n<details>\n<summary>Also merged but not included in notes</summary>\n\n#{{IGNORED}}\n</details>",
"pr_template": "- #{{TITLE}} (PR: ##{{NUMBER}})",
"empty_template": "Nothing here today",
"trim_values": true,
"max_tags_to_fetch": 200,
"max_pull_requests": 200,
"max_back_track_time_days": 365,
"base_branches": [ "main" ]
}

0 comments on commit d9b64b4

Please sign in to comment.