add api routes and functions for repository groups

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:52 -04:00
parent 401e633f01
commit 314be8ad26
5 changed files with 454 additions and 2 deletions
+2
View File
@@ -158,6 +158,8 @@ type CreateRepoOption struct {
// ObjectFormatName of the underlying git repository, empty string for default (sha1)
// enum: ["sha1","sha256"]
ObjectFormatName string `json:"object_format_name" binding:"MaxSize(6)"`
// GroupID of the group which will contain this repository. ignored if the repo owner is not an organization.
GroupID int64 `json:"group_id"`
}
// EditRepoOption options when editing a repository's properties
+1 -1
View File
@@ -27,7 +27,7 @@ type NewGroupOption struct {
Visibility VisibleType `json:"visibility"`
}
// MoveGroupOption - options for changing a group's parent and sort order
// MoveGroupOption - options for changing a group or repo's parent and sort order
// swagger:model
type MoveGroupOption struct {
// the new parent group. can be 0 to specify no parent