feat: add display_report option to disable step summary (#952)

Add a `display_report` input parameter (default: "true") that controls
whether the Claude Code Report is written to the GitHub Step Summary.
Setting it to "false" allows users with custom formatting solutions to
avoid duplicate output in the step summary.

Closes #206

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Ashwin Bhat <ashwin-ant@users.noreply.github.com>
This commit is contained in:
Ashwin Bhat
2026-02-15 15:49:49 -08:00
committed by GitHub
co-authored by claude[bot] <41898282+claude[bot]@users.noreply.github.com> Ashwin Bhat
parent f6a1c4c1b4
commit cc5ef44546
2 changed files with 11 additions and 2 deletions
+6 -2
View File
@@ -295,8 +295,12 @@ async function run() {
}
}
// Write step summary
if (executionFile && existsSync(executionFile)) {
// Write step summary (unless display_report is set to false)
if (
executionFile &&
existsSync(executionFile) &&
process.env.DISPLAY_REPORT !== "false"
) {
await writeStepSummary(executionFile);
}