Skip to content

Commit 811a8d2

Browse files
committed
[papi] Re-add Team.slug
1 parent 22479ad commit 811a8d2

File tree

6 files changed

+205
-155
lines changed

6 files changed

+205
-155
lines changed

components/gitpod-protocol/go/gitpod-service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,6 +2295,7 @@ type UserMessage struct {
22952295
type Team struct {
22962296
ID string `json:"id,omitempty"`
22972297
Name string `json:"name,omitempty"`
2298+
Slug string `json:"slug,omitempty"`
22982299
CreationTime string `json:"creationTime,omitempty"`
22992300
}
23002301

components/public-api-server/pkg/apiv1/team.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ func teamToAPIResponse(team *protocol.Team, members []*protocol.TeamMemberInfo,
290290
return &v1.Team{
291291
Id: team.ID,
292292
Name: team.Name,
293+
Slug: team.Slug,
293294
Members: teamMembersToAPIResponse(members),
294295
TeamInvitation: teamInviteToAPIResponse(invite),
295296
}

components/public-api/gitpod/experimental/v1/teams.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ message Team {
1313
// name is the name of the Team
1414
string name = 2;
1515

16-
// previously used for slug
17-
reserved 3;
16+
// slug is the slug of the Team
17+
string slug = 3;
1818

1919
// members are the team members of this Team
2020
repeated TeamMember members = 4;

0 commit comments

Comments
 (0)