Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #799 from tanordheim/ci-git-depth
Browse files Browse the repository at this point in the history
Add support for ci_default_git_depth
  • Loading branch information
svanharmelen authored Mar 13, 2020
2 parents cd9dd19 + 3dab725 commit e1bb384
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ type Project struct {
GroupName string `json:"group_name"`
GroupAccessLevel int `json:"group_access_level"`
} `json:"shared_with_groups"`
Statistics *ProjectStatistics `json:"statistics"`
Links *Links `json:"_links,omitempty"`
CIConfigPath *string `json:"ci_config_path"`
CustomAttributes []*CustomAttribute `json:"custom_attributes"`
Statistics *ProjectStatistics `json:"statistics"`
Links *Links `json:"_links,omitempty"`
CIConfigPath *string `json:"ci_config_path"`
CIDefaultGitDepth int `json:"ci_default_git_depth"`
CustomAttributes []*CustomAttribute `json:"custom_attributes"`
}

// Repository represents a repository.
Expand Down Expand Up @@ -550,6 +551,7 @@ type EditProjectOptions struct {
TagList *[]string `url:"tag_list,omitempty" json:"tag_list,omitempty"`
BuildCoverageRegex *string `url:"build_coverage_regex,omitempty" json:"build_coverage_regex,omitempty"`
CIConfigPath *string `url:"ci_config_path,omitempty" json:"ci_config_path,omitempty"`
CIDefaultGitDepth *int `url:"ci_default_git_depth,omitempty" json:"ci_default_git_depth,omitempty"`
ApprovalsBeforeMerge *int `url:"approvals_before_merge,omitempty" json:"approvals_before_merge,omitempty"`
ExternalAuthorizationClassificationLabel *string `url:"external_authorization_classification_label,omitempty" json:"external_authorization_classification_label,omitempty"`
Mirror *bool `url:"mirror,omitempty" json:"mirror,omitempty"`
Expand Down

0 comments on commit e1bb384

Please sign in to comment.