From 213baa31db08c82be7fb6f4ef7241cc9bbcf79a4 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 7 Jul 2024 01:40:15 +0200 Subject: fix label bug fix v6 --- .github/workflows/label-bug-fix.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/label-bug-fix.yml b/.github/workflows/label-bug-fix.yml index 20c3aec4f..f25633f75 100644 --- a/.github/workflows/label-bug-fix.yml +++ b/.github/workflows/label-bug-fix.yml @@ -1,7 +1,11 @@ name: "Bug Fix label" on: pull_request: - types: [ opened, edited ] + types: [ opened, edited, labeled ] + +permissions: + issues: write + jobs: assign-label: runs-on: ubuntu-latest @@ -12,7 +16,7 @@ jobs: LABEL: Bug Fix - Sooner than Very Soon uses: actions/github-script@v7 with: - repoToken: "${{ secrets.GITHUB_TOKEN }}" + github-token: "${{ secrets.GITHUB_TOKEN }}" script: | if(process.env.TITLE.split(":")[0].toUpperCase().includes("FIX")){ github.rest.issues.addLabels({ -- cgit