Fixed variable name for registry method, as per … (#646)

fix(core): 🐛 Fixed variable name for registry method, as per https://docs.gitlab.com/12.8/ee/api/container_registry.html#delete-registry-repository-tags-in-bulk

BREAKING CHANGE: 🧨 A `removeTags` method parameter name changed from tagNameRegex to nameRegex. Works with GitLab 12.x.

Co-authored-by: Joseph Petersen <josephp90@gmail.com>
This commit is contained in:
schindld 2020-03-24 12:21:41 -04:00 committed by GitHub
parent 75220ccc4c
commit 992b809cb1
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,
tagNameRegex: string,
nameRegex: string,
options?: Sudo & { keepN: string; olderThan: string },
) {
const [pId, rId] = [projectId, repositoryId].map(encodeURIComponent);
return RequestHelper.del(this, `projects/${pId}/registry/repositories/${rId}/tags`, {
tagNameRegex,
nameRegex,
...options,
});
}