From d2577381d9cf8e3b4bec11d477b725dc79f6b97a Mon Sep 17 00:00:00 2001 From: Aamir Azad <82281117+aamirazad@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:08:15 +0530 Subject: [PATCH] ci: combine release drafter and pr tagger into one action (#36) --- .github/release-drafter.yml | 1 - .github/workflows/pr-tagger.yml | 25 ------------------------- .github/workflows/release-drafter.yml | 7 +------ 3 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 .github/workflows/pr-tagger.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 0d69836..d03db3c 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -32,7 +32,6 @@ autolabeler: title: - "/BREAKING CHANGE/i" - '/\w+!:/i' - # Adding semantic versioning labels - label: "major" title: - "/BREAKING CHANGE/i" diff --git a/.github/workflows/pr-tagger.yml b/.github/workflows/pr-tagger.yml deleted file mode 100644 index 3838070..0000000 --- a/.github/workflows/pr-tagger.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: PR Tagger - -on: - pull_request: - types: - - opened - - reopened - branches: - - main - -permissions: - contents: read - -jobs: - pr_opened_or_reopened: - name: pr_opened_or_reopened - runs-on: ubuntu-latest - permissions: - # write permission is required for autolabeler - pull-requests: write - steps: - - name: Label PR with release-drafter - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e6d51cf..b18f383 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,11 +7,7 @@ on: - main # pull_request event is required only for autolabeler pull_request: - # Only following types are handled by the action, but one can default to all as well types: [opened, reopened, synchronize] - # pull_request_target event is required for autolabeler to support PRs from forks - # pull_request_target: - # types: [opened, reopened, synchronize] workflow_dispatch: {} permissions: @@ -23,8 +19,7 @@ jobs: # write permission is required to create a github release contents: write # write permission is required for autolabeler - # otherwise, read permission is required at least - pull-requests: read + pull-requests: write runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged