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.
Files changed (2) hide show
  1. package/dist/github.mjs +2 -5
  2. 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 result = await run("gh", ["pr", "list", "--head", branch, "--state", "open", "--json", "number", "--repo", slug(repo)], { cwd: repo.root });
121
- if (result.code !== 0) {
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",