forked from forgejo/forgejo
parent
4ad42a4e3f
commit
82b92c3f2c
28 changed files with 890 additions and 13 deletions
|
@ -115,6 +115,16 @@ type Repository struct {
|
|||
RepoTransfer *RepoTransfer `json:"repo_transfer"`
|
||||
}
|
||||
|
||||
// GetName implements the gitrepo.Repository interface
|
||||
func (r Repository) GetName() string {
|
||||
return r.Name
|
||||
}
|
||||
|
||||
// GetOwnerName implements the gitrepo.Repository interface
|
||||
func (r Repository) GetOwnerName() string {
|
||||
return r.Owner.UserName
|
||||
}
|
||||
|
||||
// CreateRepoOption options when creating repository
|
||||
// swagger:model
|
||||
type CreateRepoOption struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue