Skip to content

Commit

Permalink
v0.53
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumonkie committed Dec 15, 2020
1 parent 7dd5fd5 commit bef46b8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ function getCommitId() {
github.context.payload.pull_request.head &&
github.context.payload.pull_request.head.sha) {
// we are in a pull request context
console.log('pullrequest commit id');
console.log(github.context.payload.pull_request.head.sha)
return github.context.payload.pull_request.head.sha;
} else if (github.context && github.context.eventName === 'push' && github.context.sha) {
// when we are pushing a commit outside of a PR (e.g: merging a branch)
console.log('merge commit id');
console.log(`${JSON.stringify(github)}`)
console.log(github.context.sha);
return github.context.sha;
}
}
Expand Down

0 comments on commit bef46b8

Please sign in to comment.