Update dependency package code.gitea.io/sdk/gitea to latest version (#48)

This commit is contained in:
Lunny Xiao
2019-10-13 15:13:33 +00:00
committed by Gitea
parent 7c024bcd69
commit d1134e8008
39 changed files with 549 additions and 1096 deletions

View File

@ -17,11 +17,8 @@ type GitHook struct {
Content string `json:"content,omitempty"`
}
// GitHookList represents a list of Git hooks
type GitHookList []*GitHook
// ListRepoGitHooks list all the Git hooks of one repository
func (c *Client) ListRepoGitHooks(user, repo string) (GitHookList, error) {
func (c *Client) ListRepoGitHooks(user, repo string) ([]*GitHook, error) {
hooks := make([]*GitHook, 0, 10)
return hooks, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/hooks/git", user, repo), nil, nil, &hooks)
}