From f1eeef5806cf6d3bea4a50b75ac0c8675ff4d555 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Tue, 17 Dec 2024 03:47:35 -0800 Subject: [PATCH] action.cjs: always include patch, if it was submitted by a bot --- action.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.cjs b/action.cjs index 4137175..bde4dc7 100644 --- a/action.cjs +++ b/action.cjs @@ -108,7 +108,7 @@ module.exports = async ({ github, context, inputs, actionPath }) => { : `openai debug - ${watermark}` } - const header = options.include_diff + const header = options.include_diff || context.actor.endsWith('[bot]') ? '
Diff\n\n```diff\n\n' + filteredPatch + '\n\n```\n\n
' : ''