Commit ae78b1e
Philipp Böschen
Add the
Currently, in GitLab 14.4.0 the `draft` url parameter is not implemented -
and I'm still unsure whether it should be? You still filter for non-draft
merge requests with `wip=yes`. If GitLab ever removes the `wip` url param
and replaces it with `draft` the typing of this field becomes a difficult
question I think, might be wrong here.
This should be backwards compatible due to the `omitempty` being in both the
`Draft` and `WIP` fields of the merge request structs.
Also adjusted the tests to use `Draft:` instead of `WIP:`. It might be worth
considering having tests for both but that would raise questions on which
behaviour to expect - the removed `WIP:` not working or until it is still in
supported versions to maintain backwards compatibility.Draft parameter for merge request structs1 parent ca2e8cc commit ae78b1e
2 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
0 commit comments