diff --git a/.github/workflows/consume_ci_run_label.yml b/.github/workflows/consume_ci_run_label.yml index 8c407c3..6864420 100644 --- a/.github/workflows/consume_ci_run_label.yml +++ b/.github/workflows/consume_ci_run_label.yml @@ -6,7 +6,7 @@ on: permissions: contents: read - issues: write + pull-requests: write jobs: consume: @@ -17,4 +17,4 @@ jobs: env: GH_TOKEN: ${{ github.token }} PR_NUMBER: ${{ github.event.pull_request.number }} - run: gh issue edit "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --remove-label "ci:run" + run: gh pr edit "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --remove-label "ci:run"