Repository navigation
Commit 49c1d43
fix(fetcher): percent-encode branch in gitlab_pipeline_status URL
Naive interpolation of `branch` into the `&ref=<branch>` query parameter
broke the request semantics for any branch name carrying `&`, `=`, `#`, `+`,
`?`, or a slash. The fetcher silently returned the wrong pipeline (or a
parse error from GitLab) instead of failing fast.
Route the value through `url::form_urlencoded::byte_serialize` so the
encoded payload stays inside a single query pair. Adds a unit test pinning
the encoding for the canonical reserved-character set so a future url-crate
loosening surfaces here.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 97a493a commit 49c1d43
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
335 | 358 | | |
336 | 359 | | |
337 | 360 | | |
| |||
0 commit comments