Merge pull request #1 from RavenX8/changelog_builder

changelog builder
This commit is contained in:
2024-01-14 22:11:35 -05:00
committed by GitHub
2 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
{
"categories": [
{
"title": "## 🚀 Added",
"labels": ["feature", "added"]
},
{
"title": "## 🧪 Changed",
"labels": ["change", "changes", "updated"]
},
{
"title": "## Deprecated",
"labels": ["deprecated"]
},
{
"title": "## Removed",
"labels": ["remove", "removed"]
},
{
"title": "## 🐛 Fixed",
"labels": ["fix", "fixed", "fixes"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
},
{
"title": "## Security",
"labels": ["security", "vulnerability"]
}
],
"ignore_labels": [
"ignore",
"ci"
],
"template": "${{CHANGELOG}}",
"empty_template": "- no changes",
"transformers": [
{
"pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
"target": "- $4\n - $6"
}
],
"exclude_merge_branches": [],
"base_branches": []
}

27
.github/workflows/changelog_builder.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: PR Changelog builder
on:
push:
tags:
- '*'
pull_request:
types: [opened, reopened]
jobs:
changelogBuilder:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Release Changelog Builder
id: github_release
uses: mikepenz/release-changelog-builder-action@v4.1.1
with:
configuration: ".github/config/changelog_configuration.json"
commitMode: ${{ !startsWith(github.ref, 'refs/tags/') }}
ignorePreReleases: ${{ !contains(github.ref, '-') }}
token: ${{ secrets.GITHUB_TOKEN }}
# - name: Update Pull Request Description
# uses: riskledger/update-pr-description@v2
# with:
# body: ${{steps.github_release.outputs.changelog}}
# token: ${{ secrets.GITHUB_TOKEN }}