Skip to content

Commit

Permalink
feat: branch name in deployment events
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunattam authored Jan 6, 2025
1 parent 4259ce3 commit 62be331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function getCommitSha(): string {
if (github.context.eventName === 'pull_request') {
// github.context.sha will give sha for the merged commit
return github.context.payload.pull_request!.head.sha;
} else if (github.context.eventName.includes("deployment")) {
// TODO
}
return github.context.sha;
}
Expand Down

0 comments on commit 62be331

Please sign in to comment.