Skip to content

Commit

Permalink
chore: add default for invisible marker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Dec 17, 2024
1 parent fb10531 commit a312727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export async function handleViewsAndComments(
generateViews(inputs, report)

if (shouldAddCommentToPullRequest(inputs, report)) {
const INVISIBLE_MARKER =
`<!-- CTRF PR COMMENT TAG: ${inputs.commentTag} -->` ||
const INVISIBLE_MARKER = inputs.commentTag ?
`<!-- CTRF PR COMMENT TAG: ${inputs.commentTag} -->` :
`<!-- CTRF PR COMMENT TAG: DEFAULT -->`

await postOrUpdatePRComment(inputs, INVISIBLE_MARKER)
Expand Down

0 comments on commit a312727

Please sign in to comment.