mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 17:57:09 +02:00
add api routes and functions for repository groups
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user