@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.
package/extensions/pr-command.ts
CHANGED
|
@@ -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}
|
|
109
|
-
`
|
|
108
|
+
`Merge PR #${current.number}?`,
|
|
109
|
+
`Method: ${method}.`,
|
|
110
110
|
);
|
|
111
111
|
if (!confirmed) return false;
|
|
112
112
|
|
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