@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.
- package/index.js +9 -9
- 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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
25
|
+
"@remogram/core": "0.1.0-beta.8"
|
|
26
26
|
}
|
|
27
27
|
}
|