From d72366294ba5477a748592d5360553bea2170362 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Fri, 15 Mar 2024 22:42:10 +0530 Subject: [PATCH] chore(releasenotes): update workflow configuration (#390) --- .github/release-drafter.yml | 24 ++++++++++++++++-------- .github/workflows/release-notes.yml | 10 ++++------ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index f92689d9..1c607b71 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -11,6 +11,11 @@ autolabeler: - '/fix\/.+/' title: - '/fix/i' + - label: 'improvement' + branch: + - '/improv\/.+/' + title: + - '/improv/i' - label: 'feature' branch: - '/feature\/.+/' @@ -23,9 +28,9 @@ autolabeler: - '/docs/i' - label: 'maintenance' branch: - - '/(chore|refactor|style|test|ci|perf|build|deps)\/.+/' + - '/(chore|refactor|style|test|ci|perf|build)\/.+/' title: - - '/(chore|refactor|style|test|ci|perf|build|deps)/i' + - '/(chore|refactor|style|test|ci|perf|build)/i' - label: 'chore' branch: - '/chore\/.+/' @@ -78,17 +83,23 @@ categories: - "type: enhancement" - "type: new feature" - "type: major" - - title: '🐛 Bug Fixes' + - "type: minor" + - title: '💡 Improvements' labels: - - 'fix' + - 'improvement' - "type: improvement" + + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bug' - "type: bug" - - "type: minor" - title: '📚 Documentation' labels: - 'docs' - title: '🔧 Maintenance' labels: + - 'maintenance' - 'chore' - 'refactor' - 'style' @@ -96,9 +107,6 @@ categories: - 'ci' - 'perf' - 'build' - - 'deps' - - "type: dependency upgrade" - - "dependencies" - "type: ci" - "type: build" - title: '⏪ Reverts' diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 81ddd2ab..7c9a5f80 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -10,13 +10,13 @@ on: pull_request: types: [opened, reopened, synchronize] pull_request_target: - types: [opened, reopened, synchronize] - workflow_dispatch: + types: [opened, reopened, synchronize] + workflow_dispatch: jobs: release_notes: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + - uses: actions/checkout@v4 - name: Check if it has release drafter config file id: check_release_drafter run: | @@ -30,8 +30,6 @@ jobs: if: steps.check_release_drafter.outputs.has_release_drafter == 'true' env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - with: - commitish: ${{ steps.extract_branch.outputs.value }} # Otherwise: - name: Export Gradle Properties if: steps.check_release_drafter.outputs.has_release_drafter == 'false' @@ -50,4 +48,4 @@ jobs: name: ${{ env.title }} ${{ steps.release_notes.outputs.next_version }} tag: v${{ steps.release_notes.outputs.next_version }} bodyFile: CHANGELOG.md - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_TOKEN }} \ No newline at end of file