mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 10:12:54 +02:00
Update dependency package code.gitea.io/sdk/gitea to latest version (#48)
This commit is contained in:
5
vendor/code.gitea.io/sdk/gitea/git_hook.go
generated
vendored
5
vendor/code.gitea.io/sdk/gitea/git_hook.go
generated
vendored
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user