We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c317bcf commit 7bea055Copy full SHA for 7bea055
repo.go
@@ -47,6 +47,16 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
47
return repos, c.getParsedResponse("GET", "/user/repos", nil, nil, &repos)
48
}
49
50
+func (c *Client) ListUserRepos(user string) ([]*Repository, error) {
51
+ repos := make([]*Repository, 0, 10)
52
+ return repos, c.getParsedResponse("GET", fmt.Sprintf("/users/%s/repos", user), nil, nil, &repos)
53
+}
54
+
55
+func (c *Client) ListOrgRepos(org string) ([]*Repository, error) {
56
57
+ return repos, c.getParsedResponse("GET", fmt.Sprintf("/orgs/%s/repos", org), nil, nil, &repos)
58
59
60
type CreateRepoOption struct {
61
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
62
Description string `json:"description" binding:"MaxSize(255)"`
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments