Skip to content

Instantly share code, notes, and snippets.

@TRahulSam1997
Created November 13, 2020 11:49
Show Gist options
  • Save TRahulSam1997/35cb1b37b266dc69886f9c5f83f59585 to your computer and use it in GitHub Desktop.
Save TRahulSam1997/35cb1b37b266dc69886f9c5f83f59585 to your computer and use it in GitHub Desktop.
function getPullRequestBranch(payload) {
return pullRequestBranch = delve(payload, 'pull_request.head.ref');
}
function getBaseBranch(payload) {
return baseBranch = delve(payload, 'pull_request.base.ref');
}
function getCommitURL(payload) {
return commitURL = delve(payload, 'pull_request.statuses_url');
}
function getAction(payload) {
return commitURL = delve(payload, 'action');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment