make incremental reviews silent (suppress progress comments)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin McDonnell
2026-03-05 21:11:34 +00:00
committed by pullfrog[bot]
co-authored by Claude Opus 4.6
parent 734e8197db
commit 808849fcc8
7 changed files with 33 additions and 14 deletions
+16 -3
View File
@@ -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",
});