1
0
Fork 0
forked from forgejo/forgejo

[FEAT] sourcehut webhooks

(cherry picked from commit ed9dd0e62a)
This commit is contained in:
oliverpool 2024-03-13 16:49:48 +01:00 committed by GitHub
parent 4ad42a4e3f
commit 82b92c3f2c
28 changed files with 890 additions and 13 deletions

View file

@ -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 {