@gitbeaker/core 34.7.0 → 35.3.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/index.es.js +16 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/map.json +1 -1
- package/dist/types/resources/Issues.d.ts +2 -2
- package/dist/types/resources/Jobs.d.ts +1 -1
- package/dist/types/resources/Lint.d.ts +4 -0
- package/dist/types/resources/Tags.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -2376,8 +2376,11 @@ var Tags = /** @class */ (function (_super) {
|
|
|
2376
2376
|
Tags.prototype.all = function (projectId, options) {
|
|
2377
2377
|
return RequestHelper.get()(this, endpoint(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), options);
|
|
2378
2378
|
};
|
|
2379
|
-
Tags.prototype.create = function (projectId, options) {
|
|
2380
|
-
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId),
|
|
2379
|
+
Tags.prototype.create = function (projectId, tagName, ref, options) {
|
|
2380
|
+
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), __assign({ query: {
|
|
2381
|
+
tagName: tagName,
|
|
2382
|
+
ref: ref,
|
|
2383
|
+
} }, options));
|
|
2381
2384
|
};
|
|
2382
2385
|
Tags.prototype.remove = function (projectId, tagName, options) {
|
|
2383
2386
|
return RequestHelper.del()(this, endpoint(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["projects/", "/repository/tags/", ""], ["projects/", "/repository/tags/", ""])), projectId, tagName), options);
|
|
@@ -2649,8 +2652,19 @@ var Lint = /** @class */ (function (_super) {
|
|
|
2649
2652
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2650
2653
|
}
|
|
2651
2654
|
Lint.prototype.lint = function (content, options) {
|
|
2655
|
+
// Perform CI file linting without context.
|
|
2656
|
+
// See https://docs.gitlab.com/ee/api/lint.html#validate-the-ci-yaml-configuration
|
|
2657
|
+
// This API doesn't work for CI files that contain `local` includes. Use `lintWithNamespace` instead.
|
|
2652
2658
|
return RequestHelper.post()(this, 'ci/lint', __assign({ content: content }, options));
|
|
2653
2659
|
};
|
|
2660
|
+
// TODO: Figure out a better way of writing this to not be limited by the typing.
|
|
2661
|
+
Lint.prototype.lintWithNamespace = function (projectId, content, options) {
|
|
2662
|
+
// Perform CI file linting in the context of a specific project namespace.
|
|
2663
|
+
// See https://docs.gitlab.com/ee/api/lint.html#validate-a-ci-yaml-configuration-with-a-namespace
|
|
2664
|
+
// This API is useful when the CI file being linted has `local` includes, which requires project
|
|
2665
|
+
// context to be understood.
|
|
2666
|
+
return RequestHelper.post()(this, "projects/".concat(projectId, "/ci/lint"), __assign({ content: content }, options));
|
|
2667
|
+
};
|
|
2654
2668
|
return Lint;
|
|
2655
2669
|
}(BaseResource));
|
|
2656
2670
|
|