Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
1b3cf95a
Unverified
Commit
1b3cf95a
authored
Mar 29, 2019
by
Sander van Harmelen
Committed by
GitHub
Mar 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #595 from ChristianAlexander/project-mirror
feat(projects): Add mirror values to CreateProjectOptions
parents
c9b5afd5
5207ef82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
projects.go
projects.go
+35
-1
No files found.
projects.go
View file @
1b3cf95a
...
...
@@ -445,6 +445,9 @@ type CreateProjectOptions struct {
PrintingMergeRequestLinkEnabled
*
bool
`url:"printing_merge_request_link_enabled,omitempty" json:"printing_merge_request_link_enabled,omitempty"`
CIConfigPath
*
string
`url:"ci_config_path,omitempty" json:"ci_config_path,omitempty"`
ApprovalsBeforeMerge
*
int
`url:"approvals_before_merge,omitempty" json:"approvals_before_merge,omitempty"`
Mirror
*
bool
`url:"mirror,omitempty" json:"mirror,omitempty"`
MirrorTriggerBuilds
*
bool
`url:"mirror_trigger_builds,omitempty" json:"mirror_trigger_builds,omitempty"`
InitializeWithReadme
*
bool
`url:"initialize_with_readme,omitempty" json:"initialize_with_readme,omitempty"`
}
// CreateProject creates a new project owned by the authenticated user.
...
...
@@ -497,7 +500,38 @@ func (s *ProjectsService) CreateProjectForUser(user int, opt *CreateProjectForUs
// EditProjectOptions represents the available EditProject() options.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#edit-project
type
EditProjectOptions
CreateProjectOptions
type
EditProjectOptions
struct
{
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
Path
*
string
`url:"path,omitempty" json:"path,omitempty"`
DefaultBranch
*
string
`url:"default_branch,omitempty" json:"default_branch,omitempty"`
Description
*
string
`url:"description,omitempty" json:"description,omitempty"`
IssuesEnabled
*
bool
`url:"issues_enabled,omitempty" json:"issues_enabled,omitempty"`
MergeRequestsEnabled
*
bool
`url:"merge_requests_enabled,omitempty" json:"merge_requests_enabled,omitempty"`
JobsEnabled
*
bool
`url:"jobs_enabled,omitempty" json:"jobs_enabled,omitempty"`
WikiEnabled
*
bool
`url:"wiki_enabled,omitempty" json:"wiki_enabled,omitempty"`
SnippetsEnabled
*
bool
`url:"snippets_enabled,omitempty" json:"snippets_enabled,omitempty"`
ResolveOutdatedDiffDiscussions
*
bool
`url:"resolve_outdated_diff_discussions,omitempty" json:"resolve_outdated_diff_discussions,omitempty"`
ContainerRegistryEnabled
*
bool
`url:"container_registry_enabled,omitempty" json:"container_registry_enabled,omitempty"`
SharedRunnersEnabled
*
bool
`url:"shared_runners_enabled,omitempty" json:"shared_runners_enabled,omitempty"`
Visibility
*
VisibilityValue
`url:"visibility,omitempty" json:"visibility,omitempty"`
ImportURL
*
string
`url:"import_url,omitempty" json:"import_url,omitempty"`
PublicBuilds
*
bool
`url:"public_builds,omitempty" json:"public_builds,omitempty"`
OnlyAllowMergeIfPipelineSucceeds
*
bool
`url:"only_allow_merge_if_pipeline_succeeds,omitempty" json:"only_allow_merge_if_pipeline_succeeds,omitempty"`
OnlyAllowMergeIfAllDiscussionsAreResolved
*
bool
`url:"only_allow_merge_if_all_discussions_are_resolved,omitempty" json:"only_allow_merge_if_all_discussions_are_resolved,omitempty"`
MergeMethod
*
MergeMethodValue
`url:"merge_method,omitempty" json:"merge_method,omitempty"`
LFSEnabled
*
bool
`url:"lfs_enabled,omitempty" json:"lfs_enabled,omitempty"`
RequestAccessEnabled
*
bool
`url:"request_access_enabled,omitempty" json:"request_access_enabled,omitempty"`
TagList
*
[]
string
`url:"tag_list,omitempty" json:"tag_list,omitempty"`
CIConfigPath
*
string
`url:"ci_config_path,omitempty" json:"ci_config_path,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"`
MirrorTriggerBuilds
*
bool
`url:"mirror_trigger_builds,omitempty" json:"mirror_trigger_builds,omitempty"`
MirrorUserID
*
int
`url:"mirror_user_id,omitempty" json:"mirror_user_id,omitempty"`
OnlyMirrorProtectedBranches
*
bool
`url:"only_mirror_protected_branches,omitempty" json:"only_mirror_protected_branches,omitempty"`
MirrorOverwritesDivergedBranches
*
bool
`url:"mirror_overwrites_diverged_branches,omitempty" json:"mirror_overwrites_diverged_branches,omitempty"`
PackagesEnabled
*
bool
`url:"packages_enabled,omitempty" json:"packages_enabled,omitempty"`
}
// EditProject updates an existing project.
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment