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