@@ -64,13 +64,14 @@ func (s *ExternalStatusChecksService) ListMergeStatusChecks(pid interface{}, mr
64
64
return mscs , resp , err
65
65
}
66
66
67
- // SetExternalStatusCheckStatusOptions represents the available SetExternalStatusCheckStatus() options.
67
+ // SetExternalStatusCheckStatusOptions represents the available
68
+ // SetExternalStatusCheckStatus() options.
68
69
//
69
70
// GitLab API docs:
70
71
// https://docs.gitlab.com/ee/api/status_checks.html#set-status-of-an-external-status-check
71
72
type SetExternalStatusCheckStatusOptions struct {
72
- SHA string `url:"sha" json:"sha"`
73
- ExternalStatusCheckID int `url:"external_status_check_id" json:"external_status_check_id"`
73
+ SHA * string `url:"sha,omitempty " json:"sha,omitempty "`
74
+ ExternalStatusCheckID * int `url:"external_status_check_id,omitempty " json:"external_status_check_id,omitempty "`
74
75
Status * string `url:"status,omitempty" json:"status,omitempty"`
75
76
}
76
77
@@ -118,14 +119,15 @@ func (s *ExternalStatusChecksService) ListProjectStatusChecks(pid interface{}, o
118
119
return pscs , resp , err
119
120
}
120
121
121
- // CreateExternalStatusCheckOptions represents the available CreateExternalStatusCheck() options.
122
+ // CreateExternalStatusCheckOptions represents the available
123
+ // CreateExternalStatusCheck() options.
122
124
//
123
125
// GitLab API docs:
124
126
// https://docs.gitlab.com/ee/api/status_checks.html#create-external-status-check
125
127
type CreateExternalStatusCheckOptions struct {
126
- Name string `url:"name" json:"name"`
127
- ExternalURL string `url:"external_url" json:"external_url"`
128
- ProtectedBranchIDs * []int `url:"protected_branch_ids,omitempty" json:"protected_branch_ids,omitempty"`
128
+ Name * string `url:"name,omitempty " json:"name,omitempty "`
129
+ ExternalURL * string `url:"external_url,omitempty " json:"external_url,omitempty "`
130
+ ProtectedBranchIDs * []int `url:"protected_branch_ids,omitempty" json:"protected_branch_ids,omitempty"`
129
131
}
130
132
131
133
// CreateExternalStatusCheck creates an external status check.
@@ -156,7 +158,6 @@ func (s *ExternalStatusChecksService) DeleteExternalStatusCheck(pid interface{},
156
158
if err != nil {
157
159
return nil , err
158
160
}
159
-
160
161
u := fmt .Sprintf ("projects/%s/external_status_checks/%d" , PathEscape (project ), check )
161
162
162
163
req , err := s .client .NewRequest (http .MethodDelete , u , nil , options )
@@ -167,7 +168,8 @@ func (s *ExternalStatusChecksService) DeleteExternalStatusCheck(pid interface{},
167
168
return s .client .Do (req , nil )
168
169
}
169
170
170
- // UpdateExternalStatusCheckOptions represents the available UpdateExternalStatusCheck() options.
171
+ // UpdateExternalStatusCheckOptions represents the available
172
+ // UpdateExternalStatusCheck() options.
171
173
//
172
174
// GitLab API docs:
173
175
// https://docs.gitlab.com/ee/api/status_checks.html#update-external-status-check
@@ -186,7 +188,6 @@ func (s *ExternalStatusChecksService) UpdateExternalStatusCheck(pid interface{},
186
188
if err != nil {
187
189
return nil , err
188
190
}
189
-
190
191
u := fmt .Sprintf ("projects/%s/external_status_checks/%d" , PathEscape (project ), check )
191
192
192
193
req , err := s .client .NewRequest (http .MethodPut , u , opt , options )
0 commit comments