From 3b2714982a60ab06c07b8ec10554cfa95dc5208a Mon Sep 17 00:00:00 2001 From: shaowenchen Date: Tue, 9 Jun 2020 15:24:55 +0800 Subject: [PATCH] add field for pipeline branch Signed-off-by: shaowenchen --- pkg/simple/client/devops/pipeline.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/simple/client/devops/pipeline.go b/pkg/simple/client/devops/pipeline.go index cb85ab73..a78ec0e7 100644 --- a/pkg/simple/client/devops/pipeline.go +++ b/pkg/simple/client/devops/pipeline.go @@ -505,6 +505,12 @@ type PipelineBranchItem struct { Issues []interface{} `json:"issues,omitempty" description:"issues"` URL string `json:"url,omitempty" description:"url"` } `json:"branch,omitempty"` + PullRequest struct { + Author string `json:"author,omitempty" description:"author of pull request"` + ID string `json:"id,omitempty" description:"id of pull request"` + Title string `json:"title,omitempty" description:"title of pull request"` + URL string `json:"url,omitempty" description:"url of pull request"` + } `json:"pullRequest,omitempty"` } // RunPipeline -- GitLab