@remogram/provider-github-api 0.1.0-beta.6 → 0.1.0-beta.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.
Files changed (2) hide show
  1. package/index.js +9 -9
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -435,10 +435,10 @@ export async function refsCompare(ctx, baseRef, headRef) {
435
435
  }
436
436
  const counts = gitAheadBehind(ctx.cwd, baseSha, headSha);
437
437
  return {
438
- base_ref: sanitizeField(baseRef),
439
- base_sha: baseSha,
440
- head_ref: sanitizeField(headRef),
441
- head_sha: headSha,
438
+ compare_base_ref: sanitizeField(baseRef),
439
+ compare_base_sha: baseSha,
440
+ compare_head_ref: sanitizeField(headRef),
441
+ compare_head_sha: headSha,
442
442
  ...counts,
443
443
  };
444
444
  }
@@ -460,10 +460,10 @@ export async function prView(ctx, opts) {
460
460
  url: sanitizeUrl(pr.html_url ?? pr.url),
461
461
  title: sanitizeField(pr.title),
462
462
  state: sanitizeField(pr.state),
463
- base_ref: sanitizeField(pr.base?.ref),
464
- base_sha: sanitizeField(pr.base?.sha),
465
- head_ref: sanitizeField(pr.head?.ref),
466
- head_sha: sanitizeField(pr.head?.sha),
463
+ forge_target_branch_ref: sanitizeField(pr.base?.ref),
464
+ forge_target_sha: sanitizeField(pr.base?.sha),
465
+ forge_source_branch_ref: sanitizeField(pr.head?.ref),
466
+ forge_source_sha: sanitizeField(pr.head?.sha),
467
467
  mergeability: mergeability(pr),
468
468
  };
469
469
  }
@@ -550,7 +550,7 @@ export async function prChecks(ctx, opts) {
550
550
  const mapped = [...mappedStatuses, ...mappedCheckRuns];
551
551
  const checks_truncated = statusResult.truncated || checkRunResult.truncated;
552
552
  return {
553
- head_sha: sha,
553
+ forge_source_sha: sha,
554
554
  check_conclusion: summarizeChecks(mapped),
555
555
  checks_truncated,
556
556
  statuses: mapped,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remogram/provider-github-api",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.8",
4
4
  "description": "GitHub API provider for remogram",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "node": ">=20"
23
23
  },
24
24
  "dependencies": {
25
- "@remogram/core": "0.1.0-beta.6"
25
+ "@remogram/core": "0.1.0-beta.8"
26
26
  }
27
27
  }