From cec516a5778d6a7c520cc12bcecfbc989375d556 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 18 Dec 2024 19:49:36 -0800 Subject: [PATCH] action.cjs: escape diff --- action.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.cjs b/action.cjs index bde4dc7..1f7bbe5 100644 --- a/action.cjs +++ b/action.cjs @@ -109,7 +109,7 @@ module.exports = async ({ github, context, inputs, actionPath }) => { } const header = options.include_diff || context.actor.endsWith('[bot]') - ? '
Diff\n\n```diff\n\n' + filteredPatch + '\n\n```\n\n
' + ? '
Diff\n\n```diff\n\n' + filteredPatch.replace('```', '\\`\\`\\`') + '\n\n```\n\n
' : '' await submitReview({