@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.js
CHANGED
|
@@ -2403,8 +2403,11 @@ var Tags = /** @class */ (function (_super) {
|
|
|
2403
2403
|
Tags.prototype.all = function (projectId, options) {
|
|
2404
2404
|
return RequestHelper.get()(this, endpoint(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), options);
|
|
2405
2405
|
};
|
|
2406
|
-
Tags.prototype.create = function (projectId, options) {
|
|
2407
|
-
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId),
|
|
2406
|
+
Tags.prototype.create = function (projectId, tagName, ref, options) {
|
|
2407
|
+
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), __assign({ query: {
|
|
2408
|
+
tagName: tagName,
|
|
2409
|
+
ref: ref,
|
|
2410
|
+
} }, options));
|
|
2408
2411
|
};
|
|
2409
2412
|
Tags.prototype.remove = function (projectId, tagName, options) {
|
|
2410
2413
|
return RequestHelper.del()(this, endpoint(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["projects/", "/repository/tags/", ""], ["projects/", "/repository/tags/", ""])), projectId, tagName), options);
|
|
@@ -2676,8 +2679,19 @@ var Lint = /** @class */ (function (_super) {
|
|
|
2676
2679
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2677
2680
|
}
|
|
2678
2681
|
Lint.prototype.lint = function (content, options) {
|
|
2682
|
+
// Perform CI file linting without context.
|
|
2683
|
+
// See https://docs.gitlab.com/ee/api/lint.html#validate-the-ci-yaml-configuration
|
|
2684
|
+
// This API doesn't work for CI files that contain `local` includes. Use `lintWithNamespace` instead.
|
|
2679
2685
|
return RequestHelper.post()(this, 'ci/lint', __assign({ content: content }, options));
|
|
2680
2686
|
};
|
|
2687
|
+
// TODO: Figure out a better way of writing this to not be limited by the typing.
|
|
2688
|
+
Lint.prototype.lintWithNamespace = function (projectId, content, options) {
|
|
2689
|
+
// Perform CI file linting in the context of a specific project namespace.
|
|
2690
|
+
// See https://docs.gitlab.com/ee/api/lint.html#validate-a-ci-yaml-configuration-with-a-namespace
|
|
2691
|
+
// This API is useful when the CI file being linted has `local` includes, which requires project
|
|
2692
|
+
// context to be understood.
|
|
2693
|
+
return RequestHelper.post()(this, "projects/".concat(projectId, "/ci/lint"), __assign({ content: content }, options));
|
|
2694
|
+
};
|
|
2681
2695
|
return Lint;
|
|
2682
2696
|
}(requesterUtils.BaseResource));
|
|
2683
2697
|
|