@@ -27,58 +27,59 @@ type RepositoriesService service
27
27
28
28
// Repository represents a GitHub repository.
29
29
type Repository struct {
30
- ID * int64 `json:"id,omitempty"`
31
- NodeID * string `json:"node_id,omitempty"`
32
- Owner * User `json:"owner,omitempty"`
33
- Name * string `json:"name,omitempty"`
34
- FullName * string `json:"full_name,omitempty"`
35
- Description * string `json:"description,omitempty"`
36
- Homepage * string `json:"homepage,omitempty"`
37
- CodeOfConduct * CodeOfConduct `json:"code_of_conduct,omitempty"`
38
- DefaultBranch * string `json:"default_branch,omitempty"`
39
- MasterBranch * string `json:"master_branch,omitempty"`
40
- CreatedAt * Timestamp `json:"created_at,omitempty"`
41
- PushedAt * Timestamp `json:"pushed_at,omitempty"`
42
- UpdatedAt * Timestamp `json:"updated_at,omitempty"`
43
- HTMLURL * string `json:"html_url,omitempty"`
44
- CloneURL * string `json:"clone_url,omitempty"`
45
- GitURL * string `json:"git_url,omitempty"`
46
- MirrorURL * string `json:"mirror_url,omitempty"`
47
- SSHURL * string `json:"ssh_url,omitempty"`
48
- SVNURL * string `json:"svn_url,omitempty"`
49
- Language * string `json:"language,omitempty"`
50
- Fork * bool `json:"fork,omitempty"`
51
- ForksCount * int `json:"forks_count,omitempty"`
52
- NetworkCount * int `json:"network_count,omitempty"`
53
- OpenIssuesCount * int `json:"open_issues_count,omitempty"`
54
- OpenIssues * int `json:"open_issues,omitempty"` // Deprecated: Replaced by OpenIssuesCount. For backward compatibility OpenIssues is still populated.
55
- StargazersCount * int `json:"stargazers_count,omitempty"`
56
- SubscribersCount * int `json:"subscribers_count,omitempty"`
57
- WatchersCount * int `json:"watchers_count,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility WatchersCount is still populated.
58
- Watchers * int `json:"watchers,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility Watchers is still populated.
59
- Size * int `json:"size,omitempty"`
60
- AutoInit * bool `json:"auto_init,omitempty"`
61
- Parent * Repository `json:"parent,omitempty"`
62
- Source * Repository `json:"source,omitempty"`
63
- TemplateRepository * Repository `json:"template_repository,omitempty"`
64
- Organization * Organization `json:"organization,omitempty"`
65
- Permissions map [string ]bool `json:"permissions,omitempty"`
66
- AllowRebaseMerge * bool `json:"allow_rebase_merge,omitempty"`
67
- AllowUpdateBranch * bool `json:"allow_update_branch,omitempty"`
68
- AllowSquashMerge * bool `json:"allow_squash_merge,omitempty"`
69
- AllowMergeCommit * bool `json:"allow_merge_commit,omitempty"`
70
- AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
71
- AllowForking * bool `json:"allow_forking,omitempty"`
72
- WebCommitSignoffRequired * bool `json:"web_commit_signoff_required,omitempty"`
73
- DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
74
- UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty"`
75
- SquashMergeCommitTitle * string `json:"squash_merge_commit_title,omitempty"` // Can be one of: "PR_TITLE", "COMMIT_OR_PR_TITLE"
76
- SquashMergeCommitMessage * string `json:"squash_merge_commit_message,omitempty"` // Can be one of: "PR_BODY", "COMMIT_MESSAGES", "BLANK"
77
- MergeCommitTitle * string `json:"merge_commit_title,omitempty"` // Can be one of: "PR_TITLE", "MERGE_MESSAGE"
78
- MergeCommitMessage * string `json:"merge_commit_message,omitempty"` // Can be one of: "PR_BODY", "PR_TITLE", "BLANK"
79
- Topics []string `json:"topics,omitempty"`
80
- Archived * bool `json:"archived,omitempty"`
81
- Disabled * bool `json:"disabled,omitempty"`
30
+ ID * int64 `json:"id,omitempty"`
31
+ NodeID * string `json:"node_id,omitempty"`
32
+ Owner * User `json:"owner,omitempty"`
33
+ Name * string `json:"name,omitempty"`
34
+ FullName * string `json:"full_name,omitempty"`
35
+ Description * string `json:"description,omitempty"`
36
+ Homepage * string `json:"homepage,omitempty"`
37
+ CodeOfConduct * CodeOfConduct `json:"code_of_conduct,omitempty"`
38
+ DefaultBranch * string `json:"default_branch,omitempty"`
39
+ MasterBranch * string `json:"master_branch,omitempty"`
40
+ CreatedAt * Timestamp `json:"created_at,omitempty"`
41
+ PushedAt * Timestamp `json:"pushed_at,omitempty"`
42
+ UpdatedAt * Timestamp `json:"updated_at,omitempty"`
43
+ HTMLURL * string `json:"html_url,omitempty"`
44
+ CloneURL * string `json:"clone_url,omitempty"`
45
+ GitURL * string `json:"git_url,omitempty"`
46
+ MirrorURL * string `json:"mirror_url,omitempty"`
47
+ SSHURL * string `json:"ssh_url,omitempty"`
48
+ SVNURL * string `json:"svn_url,omitempty"`
49
+ Language * string `json:"language,omitempty"`
50
+ Fork * bool `json:"fork,omitempty"`
51
+ ForksCount * int `json:"forks_count,omitempty"`
52
+ NetworkCount * int `json:"network_count,omitempty"`
53
+ OpenIssuesCount * int `json:"open_issues_count,omitempty"`
54
+ OpenIssues * int `json:"open_issues,omitempty"` // Deprecated: Replaced by OpenIssuesCount. For backward compatibility OpenIssues is still populated.
55
+ StargazersCount * int `json:"stargazers_count,omitempty"`
56
+ SubscribersCount * int `json:"subscribers_count,omitempty"`
57
+ WatchersCount * int `json:"watchers_count,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility WatchersCount is still populated.
58
+ Watchers * int `json:"watchers,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility Watchers is still populated.
59
+ Size * int `json:"size,omitempty"`
60
+ AutoInit * bool `json:"auto_init,omitempty"`
61
+ Parent * Repository `json:"parent,omitempty"`
62
+ Source * Repository `json:"source,omitempty"`
63
+ TemplateRepository * Repository `json:"template_repository,omitempty"`
64
+ Organization * Organization `json:"organization,omitempty"`
65
+ Permissions map [string ]bool `json:"permissions,omitempty"`
66
+ AllowRebaseMerge * bool `json:"allow_rebase_merge,omitempty"`
67
+ AllowUpdateBranch * bool `json:"allow_update_branch,omitempty"`
68
+ AllowSquashMerge * bool `json:"allow_squash_merge,omitempty"`
69
+ AllowMergeCommit * bool `json:"allow_merge_commit,omitempty"`
70
+ AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
71
+ AllowForking * bool `json:"allow_forking,omitempty"`
72
+ WebCommitSignoffRequired * bool `json:"web_commit_signoff_required,omitempty"`
73
+ DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
74
+ UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty"`
75
+ SquashMergeCommitTitle * string `json:"squash_merge_commit_title,omitempty"` // Can be one of: "PR_TITLE", "COMMIT_OR_PR_TITLE"
76
+ SquashMergeCommitMessage * string `json:"squash_merge_commit_message,omitempty"` // Can be one of: "PR_BODY", "COMMIT_MESSAGES", "BLANK"
77
+ MergeCommitTitle * string `json:"merge_commit_title,omitempty"` // Can be one of: "PR_TITLE", "MERGE_MESSAGE"
78
+ MergeCommitMessage * string `json:"merge_commit_message,omitempty"` // Can be one of: "PR_BODY", "PR_TITLE", "BLANK"
79
+ Topics []string `json:"topics,omitempty"`
80
+ CustomProperties map [string ]string `json:"custom_properties,omitempty"`
81
+ Archived * bool `json:"archived,omitempty"`
82
+ Disabled * bool `json:"disabled,omitempty"`
82
83
83
84
// Only provided when using RepositoriesService.Get while in preview
84
85
License * License `json:"license,omitempty"`
0 commit comments