Changeset 57523 for trunk/.github/workflows/props-bot.yml
- Timestamp:
- 02/02/2024 04:35:59 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/props-bot.yml
r57517 r57523 2 2 3 3 on: 4 # This event runs anytime a PR is (re)opened, updated, or labeled.4 # This event runs anytime a PR is (re)opened, updated, marked ready for review, or labeled. 5 5 # GitHub does not allow filtering the `labeled` event by a specific label. 6 6 # However, the logic below will short-circuit the workflow when the `props-bot` label is not the one being added. 7 # Note: The pull_request_target event is u esed instead of pull_request because this workflow needs permission to comment7 # Note: The pull_request_target event is used instead of pull_request because this workflow needs permission to comment 8 8 # on the pull request. Because this event grants extra permissions to `GITHUB_TOKEN`, any code changes within the PR 9 9 # should be considered untrusted. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/. … … 14 14 - reopened 15 15 - labeled 16 - ready_for_review 16 17 # This event runs anytime a comment is added or deleted. 17 18 # You cannot filter this event for PR comments only. … … 20 21 type: 21 22 - created 22 - deleted23 23 # This event will run everytime a new PR review is initially submitted. 24 24 pull_request_review: … … 29 29 types: 30 30 - created 31 - deleted32 31 33 32 # Cancels all previous workflow runs for pull requests that have not completed. … … 56 55 contents: read 57 56 timeout-minutes: 20 58 # The job should only run if:57 # The job will run when pull requests are open, ready for review and: 59 58 # 60 # - A pull request review is created or commented on.61 # - A n issue comment is added to a pull request.62 # - A pull request is opened, synchronized, or reopened.59 # - A comment is added to the pull request. 60 # - A review is created or commented on. 61 # - The pull request is opened, synchronized, marked ready for review, or reopened. 63 62 # - The `props-bot` label is added to the pull request. 64 63 if: | 65 contains( fromJSON( '["pull_request_review", "pull_request_review_comment"]' ), github.event_name ) || 66 ( github.event_name == 'issue_comment' && github.event.issue.pull_request ) || 67 github.event_name == 'pull_request_target' && github.event.action != 'labeled' || 68 'props-bot' == github.event.label.name 64 ( 65 github.event_name == 'issue_comment' && github.event.issue.pull_request || 66 contains( fromJSON( '["pull_request_review", "pull_request_review_comment"]' ), github.event_name ) || 67 github.event_name == 'pull_request_target' && github.event.action != 'labeled' || 68 'props-bot' == github.event.label.name 69 ) && 70 ( ! github.event.pull_request.draft && github.event.pull_request.state == 'open' || ! github.event.issue.draft && github.event.issue.state == 'open' ) 69 71 70 72 steps:
Note: See TracChangeset
for help on using the changeset viewer.