diff options
-rw-r--r-- | .github/workflows/label-bug-fix.yml | 8 |
1 files changed, 6 insertions, 2 deletions
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({ |