Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
function
isAValidPullRequest(body) {
2
return
body.pull_request.body.startsWith(
'Related trello card: https://trello.com'
);
3
}
4
5
export
function
eventIsAPullRequest(body) {
6
return
body && (
'pull_request'
in body);
Callers
1
githubCheck
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected