From 8b94c6783ead749cf810319e5b5f4b89cdb89b10 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 7 Sep 2022 21:55:11 +0100 Subject: [PATCH] Added Release note drafter --- .github/release-drafter.yml | 39 ++++++++++++++----- .github/workflows/crankshaft.yml | 11 ++---- .../workflows/releasecfg/configuration.json | 32 --------------- prebuilts | 2 +- 4 files changed, 35 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/releasecfg/configuration.json diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 10fd9cc9..538652d0 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,11 +1,32 @@ +name-template: 'Crankshaft OpenCarOS NG v$RESOLVED_VERSION ๐ŸŒˆ' +tag-template: 'v$RESOLVED_VERSION' +prerelease: true +categories: + - title: '๐Ÿš€ Features' + labels: + - 'feature' + - 'enhancement' + - title: '๐Ÿ› Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '๐Ÿงฐ Maintenance' + label: 'chore' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch template: | - ## Hardware configurations + ## Changes - ## Fixes - $CHANGES - - ## Enhancements - - None - - ## AASDK/OpenAuto - - None + $CHANGES \ No newline at end of file diff --git a/.github/workflows/crankshaft.yml b/.github/workflows/crankshaft.yml index a073230e..9fceff91 100644 --- a/.github/workflows/crankshaft.yml +++ b/.github/workflows/crankshaft.yml @@ -158,16 +158,13 @@ jobs: runs-on: ubuntu-latest steps: - - name: Create Release + name: Create GitHub release id: create_release - uses: actions/create-release@v1.1.4 + uses: release-drafter/release-drafter@v5 + inputs: + version: ${{needs.version.outputs.version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: "Crankshaft OpenCarOS NG ${{ needs.buildimage.outputs.version }} ${{ needs.buildimage.outputs.builddate }}" - draft: true - prerelease: true - name: Download artifact uses: actions/download-artifact@v2 diff --git a/.github/workflows/releasecfg/configuration.json b/.github/workflows/releasecfg/configuration.json deleted file mode 100644 index d550caeb..00000000 --- a/.github/workflows/releasecfg/configuration.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "categories": [ - { - "title": "## ๐Ÿš€ Features", - "labels": ["feature"] - }, - { - "title": "## ๐Ÿ› Fixes", - "labels": ["fix"] - }, - { - "title": "## ๐Ÿงช Tests", - "labels": ["test"] - } - ], - "sort": "ASC", - "template": "${{CHANGELOG}}\n\n
\nUncategorized\n\n${{UNCATEGORIZED}}\n
", - "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", - "empty_template": "- no changes", - "transformers": [ - { - "pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)", - "target": "- $4\n - $6" - } - ], - "max_tags_to_fetch": 200, - "max_pull_requests": 200, - "max_back_track_time_days": 90, - "exclude_merge_branches": [ - "Owner/qa" - ] -} \ No newline at end of file diff --git a/prebuilts b/prebuilts index 83717f61..3852af38 160000 --- a/prebuilts +++ b/prebuilts @@ -1 +1 @@ -Subproject commit 83717f61999400da4e4a107fc3f29e2e55e832af +Subproject commit 3852af38e8a3585a323f93b3da02a5e03a951943