Changeset 57178 for trunk/.github/workflows/pull-request-comments.yml
- Timestamp:
- 12/10/2023 10:34:12 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/pull-request-comments.yml
r57124 r57178 5 5 pull_request_target: 6 6 types: [ 'opened' ] 7 workflow_dispatch: 8 inputs: 9 pr_number: 10 description: 'The pull request number to process.' 11 required: true 12 type: string 7 branches: 8 - trunk 13 9 14 10 # Cancels all previous workflow runs for pull requests that have not completed. … … 16 12 # The concurrency group contains the workflow name and the branch name for pull requests 17 13 # or the commit hash for any other events. 18 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'workflow_dispatch' && inputs.pr_number || github.sha }} 19 cancel-in-progress: true 14 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'workflow_dispatch' && github.event.number || github.sha }} 20 15 21 16 # Disable permissions for all available scopes by default. … … 32 27 timeout-minutes: 5 33 28 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' }} 34 35 29 steps: 36 30 - uses: wow-actions/welcome@72817eb31cda1de60f51893d80e2e82ce57f7e76 # v1.3.0 … … 88 82 issues: write 89 83 pull-requests: write 90 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == ' workflow_dispatch' }}84 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' }} 91 85 steps: 92 86 - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 … … 97 91 owner: context.repo.owner, 98 92 repo: context.repo.repo, 99 issue_number: context.payload.inputs.pr_number93 issue_number: ${{ github.event.number }} 100 94 }; 101 95 const comments = ( await github.rest.issues.listComments( commentInfo ) ).data; … … 123 117 For more details about these limitations and more, check out the [Limitations page](https://wordpress.github.io/wordpress-playground/limitations/) in the WordPress Playground documentation. 124 118 125 [Test this pull request with WordPress Playground](https://playground.wordpress.net/wordpress.html?pr=${ context.payload.inputs.pr_number}).119 [Test this pull request with WordPress Playground](https://playground.wordpress.net/wordpress.html?pr=${{ github.event.number }}). 126 120 `; 127 121
Note: See TracChangeset
for help on using the changeset viewer.