Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ inputs:
description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')"
required: false
default: ""
skip-summary:
description: "Skip writing agent output to the job summary (useful when callers write their own summary)"
required: false
default: "false"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for backcompat or could it be useful?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just because i don't want the root action outputting stuff if it was triggered by the review action. by itself, it's fine


outputs:
exit-code:
Expand Down Expand Up @@ -624,7 +628,8 @@ runs:
echo "exit-code=$EXIT_CODE" >> $GITHUB_OUTPUT
echo "execution-time=$EXECUTION_TIME" >> $GITHUB_OUTPUT

# Create job summary
# Create job summary (skipped when caller handles its own summary)
if [[ "${{ inputs.skip-summary }}" != "true" ]]; then
{
echo "## cagent Execution Summary"
echo ""
Expand All @@ -648,6 +653,7 @@ runs:
echo "❌ **Status:** Failed"
fi
} >> $GITHUB_STEP_SUMMARY
fi

if [[ "$DEBUG" == "true" ]]; then
echo "::debug::Exit code: $EXIT_CODE"
Expand Down Expand Up @@ -709,7 +715,7 @@ runs:
if-no-files-found: ignore

- name: Update job summary with cleaned output
if: always()
if: always() && inputs.skip-summary != 'true'
shell: bash
env:
OUTPUT_FILE: ${{ steps.run-agent.outputs.output-file }}
Expand Down
2 changes: 2 additions & 0 deletions review-pr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ runs:
mistral-api-key: ${{ inputs.mistral-api-key }}
github-token: ${{ steps.resolve-token.outputs.token }}
extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }}
skip-summary: "true"

# ========================================
# BUILD REVIEW CONTEXT
Expand Down Expand Up @@ -563,6 +564,7 @@ runs:
extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }}
add-prompt-files: ${{ inputs.add-prompt-files }}
max-retries: "0" # Disable retries — the review agent recovers internally (root falls back when sub-agents fail), so retrying the pipeline produces duplicate reviews
skip-summary: "true"

- name: Save reviewer memory
if: always()
Expand Down
Loading