@uxf/scripts 11.77.1 → 11.78.0
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/package.json
CHANGED
|
@@ -28,6 +28,13 @@ function getApprovalUserNames(iid) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function getPushedCommits() {
|
|
31
|
+
// https://docs.gitlab.com/ci/variables/predefined_variables/
|
|
32
|
+
// Is always 0000000000000000000000000000000000000000 for merge request pipelines, scheduled pipelines,
|
|
33
|
+
// the first commit in pipelines for branches or tags, or when manually running a pipeline.
|
|
34
|
+
if (CI_COMMIT_BEFORE_SHA === "0000000000000000000000000000000000000000") {
|
|
35
|
+
return Promise.resolve([]);
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
return gitlabAxios
|
|
32
39
|
.get(`/projects/${CI_PROJECT_ID}/repository/compare?from=${CI_COMMIT_BEFORE_SHA}&to=${CI_COMMIT_SHA}`)
|
|
33
40
|
.then((response) => response.data.commits);
|