Created
November 13, 2020 11:49
-
-
Save TRahulSam1997/35cb1b37b266dc69886f9c5f83f59585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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