fix(gitlab): use project path wherever possible (#54)

Turns out that all we need is the path, and not the project id. The path
is way more user friendly, and we can easily get it from a CI variable
or combine it from the namespace & project name.
This commit is contained in:
Julian Tölle 2024-09-08 21:07:03 +02:00 committed by GitHub
parent 634eac3b76
commit ee83cec049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 28 deletions

View file

@ -62,8 +62,7 @@ func run(cmd *cobra.Command, _ []string) error {
logger.DebugContext(ctx, "using forge GitLab")
f, err = gitlab.New(logger, &gitlab.Options{
Options: forgeOptions,
Path: flagOwner,
Repo: flagRepo,
Path: fmt.Sprintf("%s/%s", flagOwner, flagRepo),
})
if err != nil {
logger.ErrorContext(ctx, "failed to create client", "err", err)