1
0
mirror of https://gitea.com/jolheiser/sip synced 2024-11-29 21:10:56 +01:00
sip/modules/sdk/repo.go
John Olheiser 427ecdb7f1 Clean up and polish (#1)
Move issues validator

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Comments

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Package cleanup

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/jolheiser/sip/pulls/1
2020-02-18 05:27:52 +00:00

17 lines
419 B
Go

package sdk
import "code.gitea.io/sdk/gitea"
// GetForks returns all of a repository's forks
// TODO Update to handle paging when SDK supports
func GetForks(client *gitea.Client, owner, repo string) ([]*gitea.Repository, error) {
repos, err := client.ListForks(owner, repo)
if err != nil {
return nil, err
}
return repos, nil
}
// TODO List Stargazers when SDK supports
// TODO List Watchers when SDK supports