mirror of
https://gitea.com/jolheiser/sip
synced 2024-11-29 21:10:56 +01:00
427ecdb7f1
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
17 lines
419 B
Go
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
|