Commit fba2237f authored by Sander van Harmelen's avatar Sander van Harmelen

Merge pull request #39 from thecanadianbaker/update-project

Updated Project struct
parents 625995db 6771d896
...@@ -34,31 +34,38 @@ type ProjectsService struct { ...@@ -34,31 +34,38 @@ type ProjectsService struct {
// //
// GitLab API docs: http://doc.gitlab.com/ce/api/projects.html // GitLab API docs: http://doc.gitlab.com/ce/api/projects.html
type Project struct { type Project struct {
ID *int `json:"id"` ID *int `json:"id"`
Description *string `json:"description"` Description *string `json:"description"`
DefaultBranch *string `json:"default_branch"` DefaultBranch *string `json:"default_branch"`
Public *bool `json:"public"` Public *bool `json:"public"`
VisibilityLevel *VisibilityLevel `json:"visibility_level"` VisibilityLevel *VisibilityLevel `json:"visibility_level"`
SSHURLToRepo *string `json:"ssh_url_to_repo"` SSHURLToRepo *string `json:"ssh_url_to_repo"`
HTTPURLToRepo *string `json:"http_url_to_repo"` HTTPURLToRepo *string `json:"http_url_to_repo"`
WebURL *string `json:"web_url"` WebURL *string `json:"web_url"`
TagList *[]string `json:"tag_list"` TagList *[]string `json:"tag_list"`
Owner *User `json:"owner"` Owner *User `json:"owner"`
Name *string `json:"name"` Name *string `json:"name"`
NameWithNamespace *string `json:"name_with_namespace"` NameWithNamespace *string `json:"name_with_namespace"`
Path *string `json:"path"` Path *string `json:"path"`
PathWithNamespace *string `json:"path_with_namespace"` PathWithNamespace *string `json:"path_with_namespace"`
IssuesEnabled *bool `json:"issues_enabled"` IssuesEnabled *bool `json:"issues_enabled"`
MergeRequestsEnabled *bool `json:"merge_requests_enabled"` OpenIssuesCount *int `json:"open_issues_count"`
WikiEnabled *bool `json:"wiki_enabled"` MergeRequestsEnabled *bool `json:"merge_requests_enabled"`
SnippetsEnabled *bool `json:"snippets_enabled"` BuildsEnabled *bool `json:"builds_enabled"`
CreatedAt *time.Time `json:"created_at,omitempty"` WikiEnabled *bool `json:"wiki_enabled"`
LastActivityAt *time.Time `json:"last_activity_at,omitempty"` SnippetsEnabled *bool `json:"snippets_enabled"`
CreatorID *int `json:"creator_id"` CreatedAt *time.Time `json:"created_at,omitempty"`
Namespace *ProjectNamespace `json:"namespace"` LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
Archived *bool `json:"archived"` CreatorID *int `json:"creator_id"`
AvatarURL *string `json:"avatar_url"` Namespace *ProjectNamespace `json:"namespace"`
Permissions *Permissions `json:"permissions"` Permissions *Permissions `json:"permissions"`
Archived *bool `json:"archived"`
AvatarURL *string `json:"avatar_url"`
SharedRunnersEnabled *bool `json:"shared_runners_enabled"`
ForksCount *int `json:"forks_count"`
StarCount *int `json:"star_count"`
RunnersToken *string `json:"runners_token"`
PublicBuilds *bool `json:"public_builds"`
} }
type ProjectNamespace struct { type ProjectNamespace struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment