@remogram/provider-gitlab-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
@@ -246,10 +246,10 @@ export async function refsCompare(ctx, baseRef, headRef) {
246
246
  });
247
247
  }
248
248
  return {
249
- base_ref: sanitizeField(baseRef),
250
- base_sha: baseSha,
251
- head_ref: sanitizeField(headRef),
252
- head_sha: headSha,
249
+ compare_base_ref: sanitizeField(baseRef),
250
+ compare_base_sha: baseSha,
251
+ compare_head_ref: sanitizeField(headRef),
252
+ compare_head_sha: headSha,
253
253
  ...gitAheadBehind(ctx.cwd, baseSha, headSha),
254
254
  };
255
255
  }
@@ -286,10 +286,10 @@ export async function prView(ctx, opts) {
286
286
  url: sanitizeUrl(mr.web_url ?? mr.url),
287
287
  title: sanitizeField(mr.title),
288
288
  state: normalizeMrState(mr.state),
289
- base_ref: sanitizeField(mr.target_branch),
290
- base_sha: sanitizeField(mr.diff_refs?.base_sha),
291
- head_ref: sanitizeField(mr.source_branch),
292
- head_sha: sanitizeField(mr.sha ?? mr.diff_refs?.head_sha),
289
+ forge_target_branch_ref: sanitizeField(mr.target_branch),
290
+ forge_target_sha: sanitizeField(mr.diff_refs?.base_sha),
291
+ forge_source_branch_ref: sanitizeField(mr.source_branch),
292
+ forge_source_sha: sanitizeField(mr.sha ?? mr.diff_refs?.head_sha),
293
293
  mergeability: mergeability(mr),
294
294
  };
295
295
  }
@@ -358,7 +358,7 @@ export async function prChecks(ctx, opts) {
358
358
  const mapped = [...mappedStatuses, ...mappedPipelines];
359
359
  const checks_truncated = statusResult.truncated || pipelineResult.truncated;
360
360
  return {
361
- head_sha: sha,
361
+ forge_source_sha: sha,
362
362
  check_conclusion: summarizeChecks(mapped),
363
363
  checks_truncated,
364
364
  statuses: mapped,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remogram/provider-gitlab-api",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.8",
4
4
  "description": "GitLab 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
  }