@henryqw/pi-pr 3.1.7 → 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.
@@ -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.7",
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",