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
694e2247
Commit
694e2247
authored
Sep 13, 2017
by
Sindre Paulsrud Moe
Committed by
Sander van Harmelen
Sep 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(v4) Updates code to use 'jobs'/'pipeline' instead of 'builds' (#207)
parent
a7573fe3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
merge_requests.go
merge_requests.go
+12
-12
projects.go
projects.go
+10
-10
No files found.
merge_requests.go
View file @
694e2247
...
...
@@ -76,14 +76,14 @@ type MergeRequest struct {
UpdatedAt
*
time
.
Time
`json:"updated_at"`
DueDate
string
`json:"due_date"`
}
`json:"milestone"`
MergeWhen
BuildSucceeds
bool
`json:"merge_when_build
_succeeds"`
MergeStatus
string
`json:"merge_status"`
SHA
string
`json:"sha"`
Subscribed
bool
`json:"subscribed"`
UserNotesCount
int
`json:"user_notes_count"`
SouldRemoveSourceBranch
bool
`json:"should_remove_source_branch"`
ForceRemoveSourceBranch
bool
`json:"force_remove_source_branch"`
Changes
[]
struct
{
MergeWhen
PipelineSucceeds
bool
`json:"merge_when_pipeline
_succeeds"`
MergeStatus
string
`json:"merge_status"`
SHA
string
`json:"sha"`
Subscribed
bool
`json:"subscribed"`
UserNotesCount
int
`json:"user_notes_count"`
SouldRemoveSourceBranch
bool
`json:"should_remove_source_branch"`
ForceRemoveSourceBranch
bool
`json:"force_remove_source_branch"`
Changes
[]
struct
{
OldPath
string
`json:"old_path"`
NewPath
string
`json:"new_path"`
AMode
string
`json:"a_mode"`
...
...
@@ -302,10 +302,10 @@ func (s *MergeRequestsService) UpdateMergeRequest(pid interface{}, mergeRequest
// GitLab API docs:
// https://docs.gitlab.com/ce/api/merge_requests.html#accept-mr
type
AcceptMergeRequestOptions
struct
{
MergeCommitMessage
*
string
`url:"merge_commit_message,omitempty" json:"merge_commit_message,omitempty"`
ShouldRemoveSourceBranch
*
bool
`url:"should_remove_source_branch,omitempty" json:"should_remove_source_branch,omitempty"`
MergeWhen
BuildSucceeds
*
bool
`url:"merge_when_build_succeeds,omitempty" json:"merge_when_build
_succeeds,omitempty"`
Sha
*
string
`url:"sha,omitempty" json:"sha,omitempty"`
MergeCommitMessage
*
string
`url:"merge_commit_message,omitempty" json:"merge_commit_message,omitempty"`
ShouldRemoveSourceBranch
*
bool
`url:"should_remove_source_branch,omitempty" json:"should_remove_source_branch,omitempty"`
MergeWhen
PipelineSucceeds
*
bool
`url:"merge_when_pipeline_succeeds,omitempty" json:"merge_when_pipeline
_succeeds,omitempty"`
Sha
*
string
`url:"sha,omitempty" json:"sha,omitempty"`
}
// AcceptMergeRequest merges changes submitted with MR using this API. If merge
...
...
projects.go
View file @
694e2247
...
...
@@ -52,7 +52,7 @@ type Project struct {
OpenIssuesCount
int
`json:"open_issues_count"`
MergeRequestsEnabled
bool
`json:"merge_requests_enabled"`
ApprovalsBeforeMerge
int
`json:"approvals_before_merge"`
BuildsEnabled
bool
`json:"build
s_enabled"`
JobsEnabled
bool
`json:"job
s_enabled"`
WikiEnabled
bool
`json:"wiki_enabled"`
SnippetsEnabled
bool
`json:"snippets_enabled"`
ContainerRegistryEnabled
bool
`json:"container_registry_enabled"`
...
...
@@ -67,8 +67,8 @@ type Project struct {
ForksCount
int
`json:"forks_count"`
StarCount
int
`json:"star_count"`
RunnersToken
string
`json:"runners_token"`
Public
Builds
bool
`json:"public_build
s"`
OnlyAllowMergeIf
BuildSucceeds
bool
`json:"only_allow_merge_if_build
_succeeds"`
Public
Jobs
bool
`json:"public_job
s"`
OnlyAllowMergeIf
PipelineSucceeds
bool
`json:"only_allow_merge_if_pipeline
_succeeds"`
OnlyAllowMergeIfAllDiscussionsAreResolved
bool
`json:"only_allow_merge_if_all_discussions_are_resolved"`
LFSEnabled
bool
`json:"lfs_enabled"`
RequestAccessEnabled
bool
`json:"request_access_enabled"`
...
...
@@ -112,10 +112,10 @@ type ProjectNamespace struct {
// StorageStatistics represents a statistics record for a group or project.
type
StorageStatistics
struct
{
StorageSize
int64
`json:"storage_size"`
RepositorySize
int64
`json:"repository_size"`
LfsObjectsSize
int64
`json:"lfs_objects_size"`
BuildArtifactsSize
int64
`json:"build
_artifacts_size"`
StorageSize
int64
`json:"storage_size"`
RepositorySize
int64
`json:"repository_size"`
LfsObjectsSize
int64
`json:"lfs_objects_size"`
JobArtifactsSize
int64
`json:"job
_artifacts_size"`
}
// ProjectStatistics represents a statistics record for a project.
...
...
@@ -582,7 +582,7 @@ type ProjectHook struct {
MergeRequestsEvents
bool
`json:"merge_requests_events"`
TagPushEvents
bool
`json:"tag_push_events"`
NoteEvents
bool
`json:"note_events"`
BuildEvents
bool
`json:"build
_events"`
JobEvents
bool
`json:"job
_events"`
PipelineEvents
bool
`json:"pipeline_events"`
WikiPageEvents
bool
`json:"wiki_page_events"`
EnableSSLVerification
bool
`json:"enable_ssl_verification"`
...
...
@@ -657,7 +657,7 @@ type AddProjectHookOptions struct {
MergeRequestsEvents
*
bool
`url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"`
TagPushEvents
*
bool
`url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"`
NoteEvents
*
bool
`url:"note_events,omitempty" json:"note_events,omitempty"`
BuildEvents
*
bool
`url:"build_events,omitempty" json:"build
_events,omitempty"`
JobEvents
*
bool
`url:"job_events,omitempty" json:"job
_events,omitempty"`
PipelineEvents
*
bool
`url:"pipeline_events,omitempty" json:"pipeline_events,omitempty"`
WikiPageEvents
*
bool
`url:"wiki_page_events,omitempty" json:"wiki_page_events,omitempty"`
EnableSSLVerification
*
bool
`url:"enable_ssl_verification,omitempty" json:"enable_ssl_verification,omitempty"`
...
...
@@ -700,7 +700,7 @@ type EditProjectHookOptions struct {
MergeRequestsEvents
*
bool
`url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"`
TagPushEvents
*
bool
`url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"`
NoteEvents
*
bool
`url:"note_events,omitempty" json:"note_events,omitempty"`
BuildEvents
*
bool
`url:"build_events,omitempty" json:"build
_events,omitempty"`
JobEvents
*
bool
`url:"job_events,omitempty" json:"job
_events,omitempty"`
PipelineEvents
*
bool
`url:"pipeline_events,omitempty" json:"pipeline_events,omitempty"`
WikiPageEvents
*
bool
`url:"wiki_page_events,omitempty" json:"wiki_page_events,omitempty"`
EnableSSLVerification
*
bool
`url:"enable_ssl_verification,omitempty" json:"enable_ssl_verification,omitempty"`
...
...
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