MCPcopy Create free account
hub / github.com/serverless/examples / isAValidPullRequest

Function isAValidPullRequest

aws-node-github-check/libs/github-service.js:1–3  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

1export function isAValidPullRequest(body) {
2 return body.pull_request.body.startsWith('Related trello card: https://trello.com');
3}
4
5export function eventIsAPullRequest(body) {
6 return body && ('pull_request' in body);

Callers 1

githubCheckFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected