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

Function handlePullRequestEvent

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

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

Source from the content-addressed store, hash-verified

322 * @param {GitHubPullRequestWebhookPayload} event
323 */
324async 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,

Callers 1

handlerFunction · 0.85

Calls 1

handleCiEventFunction · 0.85

Tested by

no test coverage detected