wp-cli version 2.13 isn't available yet from releases, meaning installing the latest stable version here crashes #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Issue and PR Triage | |
| 'on': | |
| issues: | |
| types: [opened] | |
| pull_request_target: | |
| types: [opened] | |
| workflow_dispatch: | |
| inputs: | |
| issue_number: | |
| description: 'Issue/PR number to triage (leave empty to process all)' | |
| required: false | |
| type: string | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| actions: write | |
| contents: read | |
| models: read | |
| jobs: | |
| issue-triage: | |
| uses: wp-cli/.github/.github/workflows/reusable-issue-triage.yml@main | |
| with: | |
| issue_number: >- | |
| ${{ | |
| (github.event_name == 'workflow_dispatch' && inputs.issue_number) || | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.number) || | |
| (github.event_name == 'issues' && github.event.issue.number) || | |
| '' | |
| }} |