Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions branchrestrictions.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ type branchRestrictionsBodyGroup struct {
Html struct {
Href string `json:"href"`
} `json:"html"`
FullSlug string `json:"full_slug"`
Members int `json:"members"`
Slug string `json:"slug"`
} `json:"links"`
FullSlug string `json:"full_slug"`
Slug string `json:"slug"`
}

type branchRestrictionsBodyUser struct {
Expand Down Expand Up @@ -128,7 +127,7 @@ func (b *BranchRestrictions) buildBranchRestrictionsBody(bo *BranchRestrictionsO
}
for _, g := range bo.Groups {
group := branchRestrictionsBodyGroup{
Name: g,
Slug: g,
}
groups = append(groups, group)
}
Expand Down