patchrelay 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build-info.json
CHANGED
|
@@ -271,7 +271,7 @@ function buildStructuredReviewContext(context) {
|
|
|
271
271
|
lines.push("No inline review comments were captured for this review.");
|
|
272
272
|
return lines.join("\n");
|
|
273
273
|
}
|
|
274
|
-
lines.push(`Inline review comments captured: ${reviewComments.length}`, "Resolve each comment below or verify it is already fixed on the current head before you stop.", "
|
|
274
|
+
lines.push(`Inline review comments captured: ${reviewComments.length}`, "Resolve each comment below or verify it is already fixed on the current head before you stop.", "Complete the turn either by pushing a newer PR head with the fix, or — if your reviewer-pass produces only comments, test wording, or PR-body changes — by editing the PR body via `gh pr edit` instead of pushing. Do not push a commit that produces a patch-id-equivalent diff just to make the fix unmistakable.", "If you are blocked, deliberately escalate instead of pushing.", "");
|
|
275
275
|
for (const comment of reviewComments) {
|
|
276
276
|
const location = comment.path
|
|
277
277
|
? `${comment.path}${comment.line !== undefined ? `:${comment.line}` : ""}${comment.side ? ` (${comment.side})` : ""}`
|
|
@@ -293,12 +293,12 @@ function buildRequestedChangesContext(runType, context) {
|
|
|
293
293
|
const mode = resolveRequestedChangesMode(runType, context);
|
|
294
294
|
const lines = [];
|
|
295
295
|
if (mode === "branch_upkeep") {
|
|
296
|
-
lines.push("Branch upkeep is required on the existing PR branch.", "Goal: restore merge readiness on the current branch
|
|
296
|
+
lines.push("Branch upkeep is required on the existing PR branch.", "Goal: restore merge readiness on the current branch. Push a newer head only when the work actually changes the diff against the base; do not republish a patch-id-equivalent head.");
|
|
297
297
|
}
|
|
298
298
|
else {
|
|
299
299
|
const reviewer = typeof context?.reviewerName === "string" ? context.reviewerName : undefined;
|
|
300
300
|
const reviewBody = typeof context?.reviewBody === "string" ? context.reviewBody.trim() : "";
|
|
301
|
-
lines.push("Requested changes on the existing PR branch.", "Goal: restore review readiness
|
|
301
|
+
lines.push("Requested changes on the existing PR branch.", "Goal: restore review readiness on the current PR branch. Push a newer head only when the fix actually changes the diff; if the reviewer-pass produces only comments, test wording, or PR-body changes, edit the PR body via `gh pr edit` instead.", "Address the real concern behind the feedback and verify nearby invariants in the touched flow before you publish.", reviewer ? `Reviewer: ${reviewer}` : "", reviewBody ? `Review summary:\n${reviewBody}` : "");
|
|
302
302
|
appendStructuredReviewContext(lines, context);
|
|
303
303
|
}
|
|
304
304
|
return lines.join("\n").trim();
|