File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package bitbucket
33import (
44 "encoding/json"
55 "fmt"
6- "io/ioutil "
6+ "io"
77 "net/url"
88)
99
@@ -107,7 +107,7 @@ func (p *Pipelines) GetLog(po *PipelinesOptions) (string, error) {
107107 }
108108 defer responseBody .Close ()
109109
110- rawBody , err := ioutil .ReadAll (responseBody )
110+ rawBody , err := io .ReadAll (responseBody )
111111 if err != nil {
112112 return "" , err
113113 }
@@ -125,7 +125,11 @@ type BitbucketTrigerPipelineRequestBody struct {
125125 Pattern string `json:"pattern"`
126126 } `json:"selector"`
127127 } `json:"target"`
128- Variables string `json:"variables"`
128+ Variables []struct {
129+ Key string `json:"key"`
130+ Value string `json:"value"`
131+ Secured bool `json:"secured,omitempty"`
132+ } `json:"variables"`
129133}
130134
131135func (p * Pipelines ) TriggerPipeline (po * PipelinesOptions , body * BitbucketTrigerPipelineRequestBody ) (interface {}, error ) {
You can’t perform that action at this time.
0 commit comments