@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.
- package/extensions/pr-github.ts +2 -1
- package/package.json +1 -1
package/extensions/pr-github.ts
CHANGED
|
@@ -1443,7 +1443,8 @@ async function searchPullRequests(
|
|
|
1443
1443
|
context: PullRequestLoadContext,
|
|
1444
1444
|
pushTarget: PushTarget,
|
|
1445
1445
|
): Promise<SearchSelection> {
|
|
1446
|
-
const
|
|
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