From 70acb2419700d124bb46d731153c2f53d70b70bf Mon Sep 17 00:00:00 2001 From: RavenX8 <7156279+RavenX8@users.noreply.github.com> Date: Sun, 14 Jan 2024 22:01:20 -0500 Subject: [PATCH] ### Test - trying out the changelog builder --- .github/config/changelog_configuration.json | 46 +++++++++++++++++++++ .github/workflows/changelog_builder.yml | 27 ++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 .github/config/changelog_configuration.json create mode 100644 .github/workflows/changelog_builder.yml diff --git a/.github/config/changelog_configuration.json b/.github/config/changelog_configuration.json new file mode 100644 index 0000000..e302a96 --- /dev/null +++ b/.github/config/changelog_configuration.json @@ -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": [] +} diff --git a/.github/workflows/changelog_builder.yml b/.github/workflows/changelog_builder.yml new file mode 100644 index 0000000..28d6275 --- /dev/null +++ b/.github/workflows/changelog_builder.yml @@ -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 }} \ No newline at end of file