Updated the removeTags API parameter for GitLab 12.9 (#647)

Updated variable name for registry `removeTags` method, as per https://docs.gitlab.com/12.9/ee/api/container_registry.html#delete-registry-repository-tags-in-bulk

A `removeTags` method parameter name changed from nameRegex to nameRegexDelete. Works with GitLab 12.9+.
This commit is contained in:
schindld 2020-04-19 18:09:02 -04:00 committed by GitHub
parent 4be71d2d50
commit dfa3bc4838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,13 +32,13 @@ export class ContainerRegistry extends BaseService {
removeTags(
projectId: string | number,
repositoryId: number,
nameRegex: string,
options?: Sudo & { keepN: string; olderThan: string },
nameRegexDelete: string,
options?: Sudo & { nameRegexKeep: string; keepN: string; olderThan: string },
) {
const [pId, rId] = [projectId, repositoryId].map(encodeURIComponent);
return RequestHelper.del(this, `projects/${pId}/registry/repositories/${rId}/tags`, {
nameRegex,
nameRegexDelete,
...options,
});
}