From 36c90c20bcd0d16162a5c0f8180675c138e0ee48 Mon Sep 17 00:00:00 2001 From: Dr-Blank <64108942+Dr-Blank@users.noreply.github.com> Date: Wed, 18 Sep 2024 01:38:02 -0400 Subject: [PATCH] chore: update release drafter configuration and workflow to v6 --- .github/release-drafter.yml | 12 +++++++++--- .github/workflows/flutter_release.yaml | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1979a56..8c7d11c 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,4 +1,4 @@ -name-template: "v$RESOLVED_VERSION 🌈" +name-template: "v$RESOLVED_VERSION" tag-template: "v$RESOLVED_VERSION" # name-template: 'v$NEXT_PATCH_VERSION' # tag-template: 'v$NEXT_PATCH_VERSION' @@ -15,7 +15,10 @@ categories: - "bug" - title: "🧰 Maintenance" label: "chore" -change-template: "- $TITLE @$AUTHOR (#$NUMBER)" + - title: "💥 Breaking Changes" + labels: + - "breaking" +change-template: "- $TITLE by @$AUTHOR in #$NUMBER" change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. version-resolver: major: @@ -33,7 +36,7 @@ template: | $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEW_TAG + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION exclude-labels: - "skip-changelog" @@ -54,3 +57,6 @@ autolabeler: - "/feat(ure)?/i" body: - "/JIRA-[0-9]{1,4}/" + - label: "chore" + title: + - "/chore/i" diff --git a/.github/workflows/flutter_release.yaml b/.github/workflows/flutter_release.yaml index a8fde31..3ba9d6b 100644 --- a/.github/workflows/flutter_release.yaml +++ b/.github/workflows/flutter_release.yaml @@ -62,7 +62,7 @@ jobs: - name: Generate Release Notes id: generate_release_notes - uses: release-drafter/release-drafter@v5 + uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ github.token }} @@ -70,6 +70,6 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: build/app/outputs/flutter-apk/app-release.apk - name: Release ${{ steps.version.outputs.version }} + name: v${{ steps.version.outputs.version }} tag: ${{ github.ref }} body: ${{ steps.generate_release_notes.outputs.body }}