pr-shepherd 2.6.0 → 2.6.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
3
  "description": "Autonomous PR CI monitor and review-comment resolver for agentic coding tools",
4
- "version": "2.6.0",
4
+ "version": "2.6.1",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
7
7
  "email": "jonathanrichardong@gmail.com"
@@ -1,5 +1,6 @@
1
1
  import { readStackTopology, stackAncestryGaps } from "../../github/stack-read.mjs";
2
2
  import { buildNativeStackRebaseInstruction } from "./native-stack-rebase.mjs";
3
+ import { boundedStackPush } from "./stack-boundary.mjs";
3
4
  import { getGithubTransport } from "../../github/transport.mjs";
4
5
  /**
5
6
  * Find a stale immediate parent boundary for one PR.
@@ -32,13 +33,17 @@ export async function findStaleNativeStackAncestry(report, repo, context) {
32
33
  }
33
34
  /** Build the one-PR repair guidance after a stale boundary was verified. */
34
35
  function buildStaleNativeStackAncestryInstructions(repo, stackNumber, ancestry) {
36
+ // An ownership boundary forbids `gh stack push`, which would publish unowned layers.
37
+ const bounded = boundedStackPush();
35
38
  return [
36
39
  `PR #${ancestry.childPr} records base \`${ancestry.childBaseRefName}\` at \`${ancestry.childBaseRefOid}\`, but its open parent PR #${ancestry.parentPr} currently ends at \`${ancestry.parentHeadRefName}\` \`${ancestry.parentHeadRefOid}\`.`,
37
40
  buildNativeStackRebaseInstruction(`${repo.owner}/${repo.name}`, stackNumber, {
38
41
  parentBranch: ancestry.parentHeadRefName,
39
42
  }),
40
- getGithubTransport() === "rest"
41
- ? "Push every affected stack branch using the repository's stack-update procedure."
42
- : "Push the rewritten stack with `gh stack push`.",
43
+ bounded !== undefined
44
+ ? `${bounded.charAt(0).toUpperCase()}${bounded.slice(1)}.`
45
+ : getGithubTransport() === "rest"
46
+ ? "Push every affected stack branch using the repository's stack-update procedure."
47
+ : "Push the rewritten stack with `gh stack push`.",
43
48
  ];
44
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Autonomous PR CI monitor and review-comment resolver for agentic coding tools",
5
5
  "keywords": [
6
6
  "automation",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
3
  "description": "Autonomous PR CI monitor and review-comment resolver for agentic coding tools",
4
- "version": "2.6.0",
4
+ "version": "2.6.1",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
7
7
  "email": "jonathanrichardong@gmail.com"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-shepherd",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Autonomous PR CI monitor and review-comment resolver for Codex.",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",