@gitbeaker/core v43 changed ResourceMembers.add signature to
accept accessLevel as the second arg and userId in an options object.
Signed-off-by: benjdlambert <ben@blam.sh>
* feat(scaffolder-backend-module-gitlab): add gitlab:group:access action
Add a new scaffolder action to add or remove users and groups as members
of GitLab groups. The action supports specifying access levels (Guest,
Reporter, Developer, Maintainer, Owner) when adding members and includes
dry-run support.
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Update plugins/scaffolder-backend-module-gitlab/src/actions/gitlabGroupAccessAction.ts
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
* Update plugins/scaffolder-backend-module-gitlab/src/actions/gitlabGroupAccessAction.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Update plugins/scaffolder-backend-module-gitlab/src/actions/gitlabGroupAccessAction.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Update gitlabGroupAccessAction to use parseRepoHost and conditionally resolve access level
Use parseRepoHost instead of parseRepoUrl since only the host is needed,
and skip resolveAccessLevel for remove actions where access level is unused.
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
---------
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Add `settings.name` input to allow setting a custom human-readable
project title that differs from the repository slug (path) at creation time
- Add `ownerUsername` input to add an arbitrary GitLab user as project
owner (access level 50) after project creation, without requiring that
user to be the token holder
Both inputs are optional and backward-compatible.
Signed-off-by: David Fankhänel <128792991+dfl-aeb@users.noreply.github.com>
The search API returns multiple results requiring filtering, while show
directly returns the group by path or throws a 404 if not found. This is
more efficient and accurate for checking if a specific path exists.
Signed-off-by: Jellyfrog <Jellyfrog@users.noreply.github.com>