next-issue 1.0.3 → 1.0.4
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/dist/github.mjs +2 -5
- package/package.json +1 -1
package/dist/github.mjs
CHANGED
|
@@ -117,11 +117,8 @@ async function ensureLabel(repo, label) {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
export async function findPr(repo, branch) {
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
return undefined;
|
|
123
|
-
}
|
|
124
|
-
const parsed = JSON.parse(result.stdout);
|
|
120
|
+
const raw = await gh(repo, ["pr", "list", "--head", branch, "--state", "open", "--json", "number"]);
|
|
121
|
+
const parsed = JSON.parse(raw);
|
|
125
122
|
return parsed[0]?.number;
|
|
126
123
|
}
|
|
127
124
|
export async function createPr(repo, branch, base, title, body, draft) {
|