MCPcopy Create free account
hub / github.com/PRX/Infrastructure / handlePushEvent

Function handlePushEvent

ci/src/build-handler/index.mjs:341–348  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

339 * @param {GitHubPushWebhookPayload} event
340 */
341async 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

Callers 1

handlerFunction · 0.85

Calls 1

handleCiEventFunction · 0.85

Tested by

no test coverage detected