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
c2ef793d
Commit
c2ef793d
authored
Aug 19, 2019
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new pipeline fields
parent
fd4d48b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
17 deletions
+30
-17
merge_requests.go
merge_requests.go
+5
-9
pipelines.go
pipelines.go
+25
-8
No files found.
merge_requests.go
View file @
c2ef793d
...
@@ -111,15 +111,11 @@ type MergeRequest struct {
...
@@ -111,15 +111,11 @@ type MergeRequest struct {
RenamedFile
bool
`json:"renamed_file"`
RenamedFile
bool
`json:"renamed_file"`
DeletedFile
bool
`json:"deleted_file"`
DeletedFile
bool
`json:"deleted_file"`
}
`json:"changes"`
}
`json:"changes"`
TimeStats
*
TimeStats
`json:"time_stats"`
TimeStats
*
TimeStats
`json:"time_stats"`
Squash
bool
`json:"squash"`
Squash
bool
`json:"squash"`
Pipeline
struct
{
Pipeline
*
PipelineInfo
`json:"pipeline"`
ID
int
`json:"id"`
HeadPipeline
*
Pipeline
`json:"head_pipeline"`
Ref
string
`json:"ref"`
DiffRefs
struct
{
SHA
string
`json:"sha"`
Status
string
`json:"status"`
}
`json:"pipeline"`
DiffRefs
struct
{
BaseSha
string
`json:"base_sha"`
BaseSha
string
`json:"base_sha"`
HeadSha
string
`json:"head_sha"`
HeadSha
string
`json:"head_sha"`
StartSha
string
`json:"start_sha"`
StartSha
string
`json:"start_sha"`
...
...
pipelines.go
View file @
c2ef793d
...
@@ -56,14 +56,31 @@ type Pipeline struct {
...
@@ -56,14 +56,31 @@ type Pipeline struct {
AvatarURL
string
`json:"avatar_url"`
AvatarURL
string
`json:"avatar_url"`
WebURL
string
`json:"web_url"`
WebURL
string
`json:"web_url"`
}
}
UpdatedAt
*
time
.
Time
`json:"updated_at"`
UpdatedAt
*
time
.
Time
`json:"updated_at"`
CreatedAt
*
time
.
Time
`json:"created_at"`
CreatedAt
*
time
.
Time
`json:"created_at"`
StartedAt
*
time
.
Time
`json:"started_at"`
StartedAt
*
time
.
Time
`json:"started_at"`
FinishedAt
*
time
.
Time
`json:"finished_at"`
FinishedAt
*
time
.
Time
`json:"finished_at"`
CommittedAt
*
time
.
Time
`json:"committed_at"`
CommittedAt
*
time
.
Time
`json:"committed_at"`
Duration
int
`json:"duration"`
Duration
int
`json:"duration"`
Coverage
string
`json:"coverage"`
Coverage
string
`json:"coverage"`
WebURL
string
`json:"web_url"`
WebURL
string
`json:"web_url"`
DetailedStatus
*
DetailedStatus
`json:"detailed_status"`
}
type
DetailedStatus
struct
{
Icon
string
`json:"icon"`
// eg. "status_warning",
Text
string
`json:"text"`
// eg. "passed",
Label
string
`json:"label"`
// eg. "passed with warnings",
Group
string
`json:"group"`
// eg. "success-with-warnings",
Tooltip
string
`json:"tooltip"`
// eg. "passed",
HasDetails
bool
`json:"has_details"`
// eg. true,
DetailsPath
string
`json:"details_path"`
// eg. "/gitlab-org/gitlab-ee/pipelines/77056819",
Illustration
*
Illustration
`json:"illustration"`
// eg. : null,
Favicon
string
`json:"favicon"`
// eg. "https://gitlab.com/assets/ci_favicons/favicon_status_success-8451333011eee8ce9f2ab25dc487fe24a8758c694827a582f17f42b0a90446a2.png"
}
type
Illustration
struct
{
Image
string
`json:"image"`
}
}
func
(
i
Pipeline
)
String
()
string
{
func
(
i
Pipeline
)
String
()
string
{
...
...
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