@ligeti/step-gitlab-mr 2.0.3 → 2.1.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/dist/settings.d.ts +4 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +3 -3
- package/dist/settings.js.map +1 -1
- package/package.json +4 -4
package/dist/settings.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { z } from "@ligeti/sdk";
|
|
1
2
|
export declare const GITLAB_ENV_VARS: {
|
|
2
3
|
required: string[];
|
|
3
4
|
};
|
|
5
|
+
export declare const settingsSchema: z.ZodObject<{
|
|
6
|
+
GITLAB_TOKEN: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
4
8
|
export interface GitLabSettings {
|
|
5
9
|
readonly token: string;
|
|
6
10
|
}
|
package/dist/settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,CAAC,EAA2B,MAAM,aAAa,CAAC;AAE/E,eAAO,MAAM,eAAe;;CAEE,CAAC;AAE/B,eAAO,MAAM,cAAc;;iBAEzB,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,cAAc,CAevF"}
|
package/dist/settings.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// ABOUTME: @ligeti/step-gitlab-mr settings loaded from the environment: the PRIVATE-TOKEN sent
|
|
2
2
|
// ABOUTME: to the GitLab REST API, read from GITLAB_TOKEN.
|
|
3
|
-
import { z } from "@ligeti/sdk";
|
|
3
|
+
import { defineSettingsSchema, z } from "@ligeti/sdk";
|
|
4
4
|
export const GITLAB_ENV_VARS = {
|
|
5
5
|
required: ["GITLAB_TOKEN"],
|
|
6
6
|
};
|
|
7
|
-
const settingsSchema =
|
|
8
|
-
GITLAB_TOKEN: z.string().optional(),
|
|
7
|
+
export const settingsSchema = defineSettingsSchema({
|
|
8
|
+
GITLAB_TOKEN: z.string().optional().meta({ sensitivity: "secret" }),
|
|
9
9
|
});
|
|
10
10
|
export function loadGitLabSettings(env = process.env) {
|
|
11
11
|
const result = settingsSchema.safeParse(env);
|
package/dist/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,2DAA2D;AAC3D,OAAO,EAAE,CAAC,EAA2B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,2DAA2D;AAC3D,OAAO,EAAE,oBAAoB,EAAE,CAAC,EAA2B,MAAM,aAAa,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,CAAC,cAAc,CAAC;CACE,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;IACjD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;CACpE,CAAC,CAAC;AAMH,MAAM,UAAU,kBAAkB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACrE,MAAM,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM;aAC/B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aAC/D,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wCAAwC,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC;AAED,SAAS,QAAQ,CAAC,KAAyB;IACzC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ligeti/step-gitlab-mr",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Ligeti step package: steps that drive a GitLab merge request through the REST API (view, diff, notes, approve, comment, merge, find-by-branch, create, mark-ready, assign, await-pipeline, run-pipeline).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@ligeti/sdk": "^2.
|
|
22
|
+
"@ligeti/sdk": "^2.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@ligeti/sdk": "2.
|
|
26
|
-
"@ligeti/testing": "2.0.
|
|
25
|
+
"@ligeti/sdk": "2.2.0",
|
|
26
|
+
"@ligeti/testing": "2.0.4"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {}
|
|
29
29
|
}
|