From 90799b350e20c758ab70787d1c3b87c52ed1c198 Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Sun, 3 May 2026 13:54:23 +0900 Subject: [PATCH 1/3] ci: add auto-label action and remove from pr-lint --- .github/workflows/auto-label.yml | 19 +++++++++++++++++++ .github/workflows/pr-lint.yml | 14 +------------- 2 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/auto-label.yml diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 000000000..f03990f39 --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,19 @@ +--- +name: Auto Label + +on: + pull_request: + types: [opened, reopened, synchronize] + pull_request_target: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + auto_label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter/autolabeler@v7 diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 444e11d01..5fb3768ca 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -4,11 +4,7 @@ name: 'PR' on: pull_request_target: - types: - - opened - - reopened - - edited - - synchronize + types: [opened, reopened, edited, synchronize] permissions: contents: read @@ -45,11 +41,3 @@ jobs: revert test break - - # Run release-drafter in label-only mode, drafts are made in release-drafter.yml - - uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 - with: - config-name: release-drafter.yml - disable-releaser: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 443492892d4ffbdcc6473eeda23906eec80e3f41 Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Sun, 3 May 2026 14:00:58 +0900 Subject: [PATCH 2/3] chore: pin autolabeler action --- .github/workflows/auto-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index f03990f39..1cd94d477 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -16,4 +16,4 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter/autolabeler@v7 + - uses: release-drafter/release-drafter/autolabeler@563bf132657a13ded0b01fcb723c5a58cdd824e2 From 402319a471e72c53b5e637983ae2e7d505ff848a Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Sun, 3 May 2026 14:04:28 +0900 Subject: [PATCH 3/3] chore: remove unsafe pull_request trigger --- .github/workflows/auto-label.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 1cd94d477..f1b406b19 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -2,8 +2,6 @@ name: Auto Label on: - pull_request: - types: [opened, reopened, synchronize] pull_request_target: types: [opened, reopened, synchronize]