@h-rig/standard-plugin 0.0.6-alpha.1 → 0.0.6-alpha.3

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.
@@ -111,8 +111,10 @@ function issueToTask(issue, repo) {
111
111
  const role = roleLabel ? roleLabel.slice("role:".length) : undefined;
112
112
  const validators = labelNames.filter((l) => l.startsWith("validator:")).map((l) => l.slice("validator:".length));
113
113
  const body = issue.body ?? "";
114
+ const issueNodeId = issue.id ?? issue.nodeId ?? issue.node_id;
114
115
  return {
115
116
  id: String(issue.number),
117
+ ...typeof issueNodeId === "string" && issueNodeId.trim() ? { issueNodeId: issueNodeId.trim() } : {},
116
118
  deps: parseDeps(body),
117
119
  status: statusFor(issue),
118
120
  title: issue.title,
@@ -414,7 +416,7 @@ function createGitHubIssuesTaskSource(opts) {
414
416
  "--limit",
415
417
  String(listLimit),
416
418
  "--json",
417
- "number,title,body,labels,state,url,assignees"
419
+ "number,title,body,labels,state,url,assignees,id"
418
420
  ];
419
421
  const env = await resolveCredentialEnv(opts, "selected-repo");
420
422
  const rawIssues = runGh(bin, args, spawnFn, env, timeoutMs);
@@ -434,7 +436,7 @@ function createGitHubIssuesTaskSource(opts) {
434
436
  "--repo",
435
437
  repo,
436
438
  "--json",
437
- "number,title,body,labels,state,url,assignees"
439
+ "number,title,body,labels,state,url,assignees,id"
438
440
  ], spawnFn, env, timeoutMs);
439
441
  return issueToTask(issue, repo);
440
442
  } catch {
package/dist/src/index.js CHANGED
@@ -114,8 +114,10 @@ function issueToTask(issue, repo) {
114
114
  const role = roleLabel ? roleLabel.slice("role:".length) : undefined;
115
115
  const validators = labelNames.filter((l) => l.startsWith("validator:")).map((l) => l.slice("validator:".length));
116
116
  const body = issue.body ?? "";
117
+ const issueNodeId = issue.id ?? issue.nodeId ?? issue.node_id;
117
118
  return {
118
119
  id: String(issue.number),
120
+ ...typeof issueNodeId === "string" && issueNodeId.trim() ? { issueNodeId: issueNodeId.trim() } : {},
119
121
  deps: parseDeps(body),
120
122
  status: statusFor(issue),
121
123
  title: issue.title,
@@ -401,7 +403,7 @@ function createGitHubIssuesTaskSource(opts) {
401
403
  "--limit",
402
404
  String(listLimit),
403
405
  "--json",
404
- "number,title,body,labels,state,url,assignees"
406
+ "number,title,body,labels,state,url,assignees,id"
405
407
  ];
406
408
  const env = await resolveCredentialEnv(opts, "selected-repo");
407
409
  const rawIssues = runGh(bin, args, spawnFn, env, timeoutMs);
@@ -421,7 +423,7 @@ function createGitHubIssuesTaskSource(opts) {
421
423
  "--repo",
422
424
  repo,
423
425
  "--json",
424
- "number,title,body,labels,state,url,assignees"
426
+ "number,title,body,labels,state,url,assignees,id"
425
427
  ], spawnFn, env, timeoutMs);
426
428
  return issueToTask(issue, repo);
427
429
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/standard-plugin",
3
- "version": "0.0.6-alpha.1",
3
+ "version": "0.0.6-alpha.3",
4
4
  "type": "module",
5
5
  "description": "Rig package",
6
6
  "license": "UNLICENSED",
@@ -19,8 +19,8 @@
19
19
  "main": "./dist/src/index.js",
20
20
  "module": "./dist/src/index.js",
21
21
  "dependencies": {
22
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.1",
23
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.1",
22
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.3",
23
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.3",
24
24
  "effect": "4.0.0-beta.78"
25
25
  }
26
26
  }