* We'll want to trigger a build when actions on the pull request represent * a change that requires CI, such as opening, synchornizing, or moving from * draft to ready for review. * https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads#pull_req
(event)
| 322 | * @param {GitHubPullRequestWebhookPayload} event |
| 323 | */ |
| 324 | async function handlePullRequestEvent(event) { |
| 325 | console.log('Handling pull_request event'); |
| 326 | |
| 327 | if (PR_ACTION_TRIGGERS.includes(event.action)) { |
| 328 | console.log(`With action: ${event.action}`); |
| 329 | await handleCiEvent(event); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | /** |
| 334 | * Push events will get delivered for any branch. For pushes to pull requests, |
no test coverage detected