mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-22 03:18:54 +08:00
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:
co-authored by
claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Ashwin Bhat
parent
f6a1c4c1b4
commit
cc5ef44546
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user