Skip to content

Commit

Permalink
Merge pull request #3 from ConductorOne/jbernal/add_descriptions
Browse files Browse the repository at this point in the history
add description to groups and projects
  • Loading branch information
ggreer authored Feb 8, 2025
2 parents 1f8093c + 1411e32 commit bd5bd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pkg/connector/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ type groupBuilder struct {

func groupResource(group *gitlabSDK.Group) (*v2.Resource, error) {
profile := map[string]interface{}{
"id": group.ID,
"name": group.Name,
"id": group.ID,
"name": group.Name,
"description": group.Description,
}
if group.ParentID != 0 {
profile["parent_group_id"] = group.ParentID
Expand Down
5 changes: 3 additions & 2 deletions pkg/connector/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ func projectResource(project *gitlabSDK.Project, parentResourceID *v2.ResourceId
[]resourceSdk.GroupTraitOption{
resourceSdk.WithGroupProfile(
map[string]interface{}{
"id": project.ID,
"name": project.Name,
"id": project.ID,
"name": project.Name,
"description": project.Description,
},
),
},
Expand Down

0 comments on commit bd5bd3f

Please sign in to comment.