Skip to content

Commit

Permalink
🧹 add namespace to gitlab project
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Sep 17, 2023
1 parent 27574be commit bc70751
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/packs/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (g *mqlGitlabProject) init(args *resources.Args) (*resources.Args, GitlabPr
return nil, nil, err
}

project, _, err := gt.Client().Projects.GetProject(url.QueryEscape(gt.GroupPath)+url.QueryEscape(gt.ProjectPath), nil)
project, _, err := gt.Client().Projects.GetProject(url.QueryEscape(gt.GroupPath)+"/"+url.QueryEscape(gt.ProjectPath), nil)
if err != nil {
return nil, nil, err
}
Expand Down
39 changes: 39 additions & 0 deletions resources/packs/gitlab/gitlab.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/packs/gitlab/info/gitlab.lr.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"resources":{"gitlab.group":{"id":"gitlab.group","name":"gitlab.group","fields":{"description":{"name":"description","type":"\u0007","is_mandatory":true,"title":"Group description"},"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Group ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Group name"},"path":{"name":"path","type":"\u0007","is_mandatory":true,"title":"Group path"},"projects":{"name":"projects","type":"\u0019\u001bgitlab.project","title":"List all projects that belong to the group"},"requireTwoFactorAuthentication":{"name":"requireTwoFactorAuthentication","type":"\u0004","is_mandatory":true,"title":"Require all users in this group to setup Two-factor authentication."},"visibility":{"name":"visibility","type":"\u0007","is_mandatory":true,"title":"Group visibility. Can be private, internal, or public."}},"title":"GitLab Group"},"gitlab.project":{"id":"gitlab.project","name":"gitlab.project","fields":{"description":{"name":"description","type":"\u0007","is_mandatory":true,"title":"Project description"},"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Project ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Project name"},"path":{"name":"path","type":"\u0007","is_mandatory":true,"title":"Project path"},"visibility":{"name":"visibility","type":"\u0007","is_mandatory":true,"title":"The project's visibility level. Can be private, internal, or public."}},"title":"GitLab Project"}}}
{"resources":{"gitlab.group":{"id":"gitlab.group","name":"gitlab.group","fields":{"description":{"name":"description","type":"\u0007","is_mandatory":true,"title":"Group description"},"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Group ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Group name"},"path":{"name":"path","type":"\u0007","is_mandatory":true,"title":"Group path"},"projects":{"name":"projects","type":"\u0019\u001bgitlab.project","title":"List all projects that belong to the group"},"requireTwoFactorAuthentication":{"name":"requireTwoFactorAuthentication","type":"\u0004","is_mandatory":true,"title":"Require all users in this group to setup Two-factor authentication."},"visibility":{"name":"visibility","type":"\u0007","is_mandatory":true,"title":"Group visibility. Can be private, internal, or public."}},"title":"GitLab Group","defaults":"path"},"gitlab.project":{"id":"gitlab.project","name":"gitlab.project","fields":{"description":{"name":"description","type":"\u0007","is_mandatory":true,"title":"Project description"},"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Project ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Project name"},"namespace":{"name":"namespace","type":"\u0007","is_mandatory":true,"title":"Project namespace"},"path":{"name":"path","type":"\u0007","is_mandatory":true,"title":"Project path"},"visibility":{"name":"visibility","type":"\u0007","is_mandatory":true,"title":"The project's visibility level. Can be private, internal, or public."}},"title":"GitLab Project","defaults":"name namespace"}}}

0 comments on commit bc70751

Please sign in to comment.