Skip to content

Commit

Permalink
action.cjs: always include patch, if it was submitted by a bot
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Dec 17, 2024
1 parent f0cc5a8 commit f1eeef5
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 @@ -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]')
? '<details><summary>Diff</summary>\n\n```diff\n\n' + filteredPatch + '\n\n```\n\n</details>'
: ''

Expand Down

0 comments on commit f1eeef5

Please sign in to comment.