Skip to content

Commit

Permalink
refactor: Changed PR Context Detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludgy4 committed Jan 16, 2025
1 parent 969bf92 commit 44104cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function renderMarkdown({
let footer = ''
if (includeFooter === undefined || includeFooter === true) {
footer = `\n\n---\n\n_Triggered by @${github.context.actor}`
if ('pull_request' in github.context.payload) {
if (github.context.eventName === 'pull_request') {
footer += `, Commit: \`${(github.context.payload as PullRequestEvent).pull_request.head.sha}\`_`
}
}
Expand Down

0 comments on commit 44104cc

Please sign in to comment.