make incremental reviews silent (suppress progress comments)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
734e8197db
commit
808849fcc8
+16
-3
@@ -214,9 +214,17 @@ export async function checkoutPrBranch(
|
||||
if (alreadyOnBranch) {
|
||||
log.debug(`already on PR branch ${localBranch}, skipping checkout`);
|
||||
} else {
|
||||
// fetch base branch so origin/<base> exists for diff operations
|
||||
// fetch base branch so origin/<base> exists for diff operations.
|
||||
// deepen if shallow — actions/checkout uses depth=1 by default, which
|
||||
// breaks rebase/log operations because git can't find the merge base
|
||||
// between the shallow base and the fully-fetched PR branch.
|
||||
log.debug(`» fetching base branch (${baseBranch})...`);
|
||||
$git("fetch", ["--no-tags", "origin", baseBranch], {
|
||||
const isShallow = $("git", ["rev-parse", "--is-shallow-repository"], { log: false }).trim();
|
||||
const baseFetchArgs =
|
||||
isShallow === "true"
|
||||
? ["--deepen=1000", "--no-tags", "origin", baseBranch]
|
||||
: ["--no-tags", "origin", baseBranch];
|
||||
$git("fetch", baseFetchArgs, {
|
||||
token: gitToken,
|
||||
restricted: shell !== "enabled",
|
||||
});
|
||||
@@ -241,7 +249,12 @@ export async function checkoutPrBranch(
|
||||
// fetch if we skipped checkout (already on branch) - otherwise already fetched above
|
||||
if (alreadyOnBranch) {
|
||||
log.debug(`» fetching base branch (${baseBranch})...`);
|
||||
$git("fetch", ["--no-tags", "origin", baseBranch], {
|
||||
const isShallow = $("git", ["rev-parse", "--is-shallow-repository"], { log: false }).trim();
|
||||
const baseFetchArgs =
|
||||
isShallow === "true"
|
||||
? ["--deepen=1000", "--no-tags", "origin", baseBranch]
|
||||
: ["--no-tags", "origin", baseBranch];
|
||||
$git("fetch", baseFetchArgs, {
|
||||
token: gitToken,
|
||||
restricted: shell !== "enabled",
|
||||
});
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ export function SetOutputTool(ctx: ToolContext) {
|
||||
return tool({
|
||||
name: "set_output",
|
||||
description:
|
||||
"Set the action output. When called by a subagent, returns a summary result to the orchestrator. When called in standalone mode, exposes the value as the 'result' GitHub Action output.",
|
||||
"Set the action output. When called by a subagent, returns a summary result to the orchestrator — this is the ONLY way to pass results back. When called by the orchestrator in standalone mode (trigger: unknown), exposes the value as the 'result' GitHub Action output for downstream workflow steps. Do NOT use this for progress reporting — use report_progress instead.",
|
||||
parameters: SetOutputParams,
|
||||
execute: execute(async (params) => {
|
||||
const selfId = ctx.toolState.selfSubagentId;
|
||||
|
||||
Reference in New Issue
Block a user