name: Triage Issue on: issues: types: [opened] issue_comment: types: [created] workflow_dispatch: inputs: issue-number: description: "Issue number to triage" required: true type: number permissions: contents: read # Writes (comment + labels) are performed with GH_ACCESS_TOKEN (the # workers-devprod bot) so they are attributed to that identity, not # github-actions[bot]. Only read access is needed from the default token. issues: read # Cancel in-progress runs for the same issue concurrency: group: triage-${{ github.event.issue.number || inputs.issue-number }} cancel-in-progress: ${{ github.head_ref != 'changeset-release/main' }} jobs: triage: runs-on: ubuntu-latest # Always run for manual dispatch. For issue events, skip PRs and # bot-created issues. For comment events, skip PRs, bot comments, and the # triage bot's own sticky comment (identified by the marocchino marker) to # avoid infinite re-triage loops. if: >- github.event_name == 'workflow_dispatch' || (github.event_name == 'issues' && !github.event.issue.pull_request && github.event.issue.user.type != 'Bot') || (github.event_name == 'issue_comment' && !github.event.issue.pull_request && github.event.comment.user.type != 'Bot' && !contains(github.event.comment.body, '