Skip to content

Commit 8bb8a50

Browse files
authored
Add Unlisted option to Repository options (#118)
1 parent 4ab716b commit 8bb8a50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

repo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type Repository struct {
2626
FullName string `json:"full_name"`
2727
Description string `json:"description"`
2828
Private bool `json:"private"`
29+
Unlisted bool `json:"unlisted"`
2930
Fork bool `json:"fork"`
3031
Parent *Repository `json:"parent"`
3132
Empty bool `json:"empty"`
@@ -65,6 +66,7 @@ type CreateRepoOption struct {
6566
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
6667
Description string `json:"description" binding:"MaxSize(255)"`
6768
Private bool `json:"private"`
69+
Unlisted bool `json:"unlisted"`
6870
AutoInit bool `json:"auto_init"`
6971
Gitignores string `json:"gitignores"`
7072
License string `json:"license"`
@@ -111,6 +113,7 @@ type MigrateRepoOption struct {
111113
RepoName string `json:"repo_name" binding:"Required"`
112114
Mirror bool `json:"mirror"`
113115
Private bool `json:"private"`
116+
Unlisted bool `json:"unlisted"`
114117
Description string `json:"description"`
115118
}
116119

0 commit comments

Comments
 (0)