Skip to content

Commit 5f50273

Browse files
committed
Rename :id to :group_id in registry_repositories_in_group.
1 parent 9bd4b96 commit 5f50273

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,12 +867,12 @@ See [https://docs.gitlab.com/ce/api/container\_registry.html](https://docs.gitla
867867

868868
```perl
869869
my $registry_repositories = $api->registry_repositories_in_group(
870-
$id,
870+
$group_id,
871871
\%params,
872872
);
873873
```
874874

875-
Sends a `GET` request to `groups/:id/registry/repositories` and returns the decoded response content.
875+
Sends a `GET` request to `groups/:group_id/registry/repositories` and returns the decoded response content.
876876

877877
- delete\_registry\_repository
878878

author/header.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package GitLab::API::v4;
2-
our $VERSION = '0.24';
2+
our $VERSION = '0.25';
33

44
=encoding utf8
55

author/sections/container_registry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- registry_repositories_in_project: registry_repositories = GET projects/:project_id/registry/repositories?
3-
- registry_repositories_in_group: registry_repositories = GET groups/:id/registry/repositories?
3+
- registry_repositories_in_group: registry_repositories = GET groups/:group_id/registry/repositories?
44
- delete_registry_repository: DELETE projects/:project_id/registry/repositories/:repository_id
55
- registry_repository_tags: tags = GET projects/:project_id/registry/repositories/:repository_id/tags
66
- registry_repository_tag: tag = GET projects/:project_id/registry/repositories/:repository_id/tags/:tag_name

lib/GitLab/API/v4.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,23 +1724,23 @@ sub registry_repositories_in_project {
17241724
=item registry_repositories_in_group
17251725
17261726
my $registry_repositories = $api->registry_repositories_in_group(
1727-
$id,
1727+
$group_id,
17281728
\%params,
17291729
);
17301730
1731-
Sends a C<GET> request to C<groups/:id/registry/repositories> and returns the decoded response content.
1731+
Sends a C<GET> request to C<groups/:group_id/registry/repositories> and returns the decoded response content.
17321732
17331733
=cut
17341734

17351735
sub registry_repositories_in_group {
17361736
my $self = shift;
17371737
croak 'registry_repositories_in_group must be called with 1 to 2 arguments' if @_ < 1 or @_ > 2;
1738-
croak 'The #1 argument ($id) to registry_repositories_in_group must be a scalar' if ref($_[0]) or (!defined $_[0]);
1738+
croak 'The #1 argument ($group_id) to registry_repositories_in_group must be a scalar' if ref($_[0]) or (!defined $_[0]);
17391739
croak 'The last argument (\%params) to registry_repositories_in_group must be a hash ref' if defined($_[1]) and ref($_[1]) ne 'HASH';
17401740
my $params = (@_ == 2) ? pop() : undef;
17411741
my $options = {};
17421742
$options->{query} = $params if defined $params;
1743-
return $self->_call_rest_client( 'GET', 'groups/:id/registry/repositories', [@_], $options );
1743+
return $self->_call_rest_client( 'GET', 'groups/:group_id/registry/repositories', [@_], $options );
17441744
}
17451745

17461746
=item delete_registry_repository

0 commit comments

Comments
 (0)