增加注释
This commit is contained in:
		| @ -48,30 +48,30 @@ type Repository struct { | |||||||
| 	Name                      string                    `json:"name"`                        // 仓库名称 | 	Name                      string                    `json:"name"`                        // 仓库名称 | ||||||
| 	Empty                     bool                      `json:"empty"`                       // 仓库是否为空 | 	Empty                     bool                      `json:"empty"`                       // 仓库是否为空 | ||||||
| 	SshUrl                    string                    `json:"ssh_url"`                     // git clone 对应的  ssh 地址 | 	SshUrl                    string                    `json:"ssh_url"`                     // git clone 对应的  ssh 地址 | ||||||
| 	ForksCount                int64                     `json:"forks_count"` | 	ForksCount                int64                     `json:"forks_count"`                 // fork 次数 | ||||||
| 	Permissions               RepositoryPermission      `json:"permissions"` | 	Permissions               RepositoryPermission      `json:"permissions"`                 // 权限配置 | ||||||
| 	Private                   bool                      `json:"private"` // 是否为私有仓库 | 	Private                   bool                      `json:"private"`                     // 是否为私有仓库 | ||||||
| 	Size                      int64                     `json:"size"` | 	Size                      int64                     `json:"size"`                        // 仓库大小 KB | ||||||
| 	HasWiki                   bool                      `json:"has_wiki"` | 	HasWiki                   bool                      `json:"has_wiki"`                    // 是否有 wiki | ||||||
| 	HasProjects               bool                      `json:"has_projects"` | 	HasProjects               bool                      `json:"has_projects"`                // 是否有项目 | ||||||
| 	AllowMergeCommits         bool                      `json:"allow_merge_commits"` | 	AllowMergeCommits         bool                      `json:"allow_merge_commits"`         // 是否允许合并提交 | ||||||
| 	AvatarUrl                 string                    `json:"avatar_url"` | 	AvatarUrl                 string                    `json:"avatar_url"`                  // 头像地址 | ||||||
| 	ID                        int64                     `json:"id"`          // 仓库ID | 	ID                        int64                     `json:"id"`                          // 仓库ID | ||||||
| 	Description               string                    `json:"description"` // 创建仓库时候的描述 | 	Description               string                    `json:"description"`                 // 创建仓库时候的描述 | ||||||
| 	Website                   string                    `json:"website"` | 	Website                   string                    `json:"website"`                     // 网站 | ||||||
| 	UpdatedAt                 string                    `json:"updated_at"` | 	UpdatedAt                 string                    `json:"updated_at"`                  // 更新时间 | ||||||
| 	HasPullRequests           bool                      `json:"has_pull_requests"` | 	HasPullRequests           bool                      `json:"has_pull_requests"`           // 是否有 pull request | ||||||
| 	Parent                    map[string]interface{}    `json:"parent"` | 	Parent                    map[string]interface{}    `json:"parent"`                      // parent | ||||||
| 	OpenPrCounter             int64                     `json:"open_pr_counter"` | 	OpenPrCounter             int64                     `json:"open_pr_counter"`             // 打开的pr数量 | ||||||
| 	HasIssues                 bool                      `json:"has_issues"` | 	HasIssues                 bool                      `json:"has_issues"`                  // 是否有issues | ||||||
| 	AllowRebase               bool                      `json:"allow_rebase"` | 	AllowRebase               bool                      `json:"allow_rebase"`                // 是否允许rebase | ||||||
| 	AllowSquashMerge          bool                      `json:"allow_squash_merge"` | 	AllowSquashMerge          bool                      `json:"allow_squash_merge"`          // 是否允许 合并 merge (将分支内容合并成一次提交, 合入主干) | ||||||
| 	Owner                     RepositoryOwner           `json:"owner"` // 仓库所有者信息 | 	Owner                     RepositoryOwner           `json:"owner"`                       // 仓库所有者信息 | ||||||
| 	Template                  bool                      `json:"template"` | 	Template                  bool                      `json:"template"`                    // 是否是模版 | ||||||
| 	HtmlUrl                   string                    `json:"html_url"` // 访问仓库的html地址 | 	HtmlUrl                   string                    `json:"html_url"`                    // 访问仓库的html地址 | ||||||
| 	DefaultBranch             string                    `json:"default_branch"` | 	DefaultBranch             string                    `json:"default_branch"`              // 默认分支 | ||||||
| 	Archived                  bool                      `json:"archived"` | 	Archived                  bool                      `json:"archived"`                    // 是否已归档 | ||||||
| 	DefaultMergeStyle         string                    `json:"default_merge_style"` | 	DefaultMergeStyle         string                    `json:"default_merge_style"`         // 默认的合并方式 | ||||||
| } | } | ||||||
|  |  | ||||||
| // RepositoryInternalTracker 内部跟踪器 | // RepositoryInternalTracker 内部跟踪器 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user