* Push events will get delivered for any branch. For pushes to pull requests, * there will be an additional `pull_request` event that we will use to trigger * the build, so this only needs to proceed if the event is for the default * branch. * https://docs.github.com/en/free-pro-team@latest/deve
(event)
| 339 | * @param {GitHubPushWebhookPayload} event |
| 340 | */ |
| 341 | async function handlePushEvent(event) { |
| 342 | console.log('Handling push event'); |
| 343 | |
| 344 | if (event.ref === `refs/heads/${event.repository.default_branch}`) { |
| 345 | console.log('Push event was for default branch'); |
| 346 | await handleCiEvent(event); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * @param {*} event |
no test coverage detected