Skip to content

Commit

Permalink
chore: add message about updated pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Dec 18, 2024
1 parent de74e8c commit ac5086d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { generateViews, annotateFailed } from './core'
import { components } from '@octokit/openapi-types'

type IssueComment = components['schemas']['issue-comment']
const UPDATE_EMOJI = '🔄';

/**
* Handles the generation of views and comments for a CTRF report.
Expand Down Expand Up @@ -115,7 +116,7 @@ async function postOrUpdatePRComment(
if (inputs.updateComment && !inputs.overwriteComment) {
finalBody = `${existingComment.body}\n\n---\n\n${newSummary}`
} else if (inputs.overwriteComment) {
finalBody = newSummary
finalBody = `${newSummary}\n\n${UPDATE_EMOJI} This comment has been updated`
}
}

Expand Down

0 comments on commit ac5086d

Please sign in to comment.