File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 10
10
const fullRepositoryName = payload . repository . full_name ; // like "Codertocat/Hello-World"
11
11
12
12
const isPullRequest = payload . pull_request !== undefined ;
13
- const commitId = isPullRequest ? payload . pull_request . head . sha : ( payload . head_commit ? payload . head_commit . id : github . sha ) ; // like "ec26c3e57ca3a959ca5aad62de7213c562f8c821"
13
+ const commitId = isPullRequest ? payload . pull_request . head . sha : ( payload . head_commit ? payload . head_commit . id : payload . sha ) ; // like "ec26c3e57ca3a959ca5aad62de7213c562f8c821"
14
14
const branchName = isPullRequest ? payload . pull_request . head . ref : payload . ref . replace ( / ^ r e f s \/ h e a d s \/ / , '' ) ; // like "my/branch_name"
15
15
console . log ( `🎋 On branch '${ branchName } ', head commit ${ commitId } ` ) ;
16
16
You can’t perform that action at this time.
0 commit comments