aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/pipelines.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-10 18:31:29 +0100
committeramine <hilalyamine@gmail.com>2019-11-10 18:31:29 +0100
commit83eb7abd438f55161663e1b9381da5930cde06be (patch)
treeeaf1a4f2b2ac11cf50652070de57db089b14decc /vendor/github.com/xanzy/go-gitlab/pipelines.go
parentaf382431cade6e8012fb05cfa8ff31560b5bde50 (diff)
downloadgit-bug-83eb7abd438f55161663e1b9381da5930cde06be.tar.gz
vendor: update github.com/xanzy/go-gitlab to v0.22.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/pipelines.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/pipelines.go17
1 files changed, 10 insertions, 7 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/pipelines.go b/vendor/github.com/xanzy/go-gitlab/pipelines.go
index bf3f814b..071e5e50 100644
--- a/vendor/github.com/xanzy/go-gitlab/pipelines.go
+++ b/vendor/github.com/xanzy/go-gitlab/pipelines.go
@@ -33,8 +33,9 @@ type PipelinesService struct {
//
// GitLab API docs: https://docs.gitlab.com/ce/api/pipelines.html
type PipelineVariable struct {
- Key string `json:"key"`
- Value string `json:"value"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ VariableType string `json:"variable_type"`
}
// Pipeline represents a GitLab pipeline.
@@ -82,11 +83,13 @@ func (p Pipeline) String() string {
// PipelineInfo shows the basic entities of a pipeline, mostly used as fields
// on other assets, like Commit.
type PipelineInfo struct {
- ID int `json:"id"`
- Status string `json:"status"`
- Ref string `json:"ref"`
- SHA string `json:"sha"`
- WebURL string `json:"web_url"`
+ ID int `json:"id"`
+ Status string `json:"status"`
+ Ref string `json:"ref"`
+ SHA string `json:"sha"`
+ WebURL string `json:"web_url"`
+ UpdatedAt *time.Time `json:"updated_at"`
+ CreatedAt *time.Time `json:"created_at"`
}
func (p PipelineInfo) String() string {