@henryqw/pi-pr 3.1.6 → 3.1.8

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.
@@ -105,8 +105,8 @@ async function mergePullRequest(
105
105
  if (!current.merge) throw new Error(`PR #${current.number} merge failed: merge capabilities are unavailable`);
106
106
  const method = selectMergeMethod(current.merge);
107
107
  const confirmed = await ctx.ui.confirm(
108
- `Merge PR #${current.number} with ${method}?`,
109
- `Merge PR #${current.number} using ${method}.`,
108
+ `Merge PR #${current.number}?`,
109
+ `Method: ${method}.`,
110
110
  );
111
111
  if (!confirmed) return false;
112
112
 
@@ -1443,7 +1443,8 @@ async function searchPullRequests(
1443
1443
  context: PullRequestLoadContext,
1444
1444
  pushTarget: PushTarget,
1445
1445
  ): Promise<SearchSelection> {
1446
- const searchQuery = `is:pr${pushTarget.provenance === "inferred" ? " is:open" : ""} head:${pushTarget.ref}`;
1446
+ const headOwner = pushTarget.repository.nameWithOwner.split("/")[0]!;
1447
+ const searchQuery = `is:pr${pushTarget.provenance === "inferred" ? " is:open" : ""} head:${headOwner}:${pushTarget.ref}`;
1447
1448
  const candidates: SearchPullRequest[] = [];
1448
1449
  const cursors = new Set<string>();
1449
1450
  let issueCount: number | null = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-pr",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "description": "Run /pr to safely discover or link the current pull request, then create, update, address feedback, fix CI, or merge when ready.",
5
5
  "keywords": [
6
6
  "pi-package",