Skip to content

Commit

Permalink
action.cjs: escape diff
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Dec 19, 2024
1 parent b244967 commit fa5bc3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = async ({ github, context, inputs, actionPath }) => {
}

const header = options.include_diff || context.actor.endsWith('[bot]')
? '<details><summary>Diff</summary>\n\n```diff\n\n' + filteredPatch + '\n\n```\n\n</details>'
? '<details><summary>Diff</summary>\n\n```diff\n\n' + filteredPatch.replace('```', '\\`\\`\\`') + '\n\n```\n\n</details>'
: ''

await submitReview({
Expand Down

0 comments on commit fa5bc3f

Please sign in to comment.