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
3
3
import (
4
4
"encoding/json"
5
5
"fmt"
6
- "io/ioutil "
6
+ "io"
7
7
"net/url"
8
8
)
9
9
@@ -107,7 +107,7 @@ func (p *Pipelines) GetLog(po *PipelinesOptions) (string, error) {
107
107
}
108
108
defer responseBody .Close ()
109
109
110
- rawBody , err := ioutil .ReadAll (responseBody )
110
+ rawBody , err := io .ReadAll (responseBody )
111
111
if err != nil {
112
112
return "" , err
113
113
}
@@ -125,7 +125,11 @@ type BitbucketTrigerPipelineRequestBody struct {
125
125
Pattern string `json:"pattern"`
126
126
} `json:"selector"`
127
127
} `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"`
129
133
}
130
134
131
135
func (p * Pipelines ) TriggerPipeline (po * PipelinesOptions , body * BitbucketTrigerPipelineRequestBody ) (interface {}, error ) {
You can’t perform that action at this time.
0 commit comments