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

Function eventIsPullRequest

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

* @param {*} event * @returns {event is GitHubPullRequestWebhookPayload}

(event)

Source from the content-addressed store, hash-verified

60 * @returns {event is GitHubPullRequestWebhookPayload}
61 */
62function eventIsPullRequest(event) {
63 if (Object.prototype.hasOwnProperty.call(event, 'pull_request')) {
64 return true;
65 }
66
67 return false;
68}
69
70/**
71 *

Callers 3

startBuildFunction · 0.85
triggerBuildFunction · 0.85
getBuildspecContentJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected