mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
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:
parent
4be71d2d50
commit
dfa3bc4838
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user