Commit e01e78a
authored
Backport #23387
Close #22934
In `/user/repos` API (and other APIs related to creating repos), user
can specify a readme template for auto init. At present, if the
specified template does not exist, a `500` will be returned . This PR
improved the logic and will return a `400` instead of `500`.
1 parent 04d489d commit e01e78a
File tree
3 files changed
+31
-0
lines changed- routers/api/v1
- admin
- repo
- templates/swagger
3 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| |||
283 | 299 | | |
284 | 300 | | |
285 | 301 | | |
| 302 | + | |
| 303 | + | |
286 | 304 | | |
287 | 305 | | |
288 | 306 | | |
| |||
464 | 482 | | |
465 | 483 | | |
466 | 484 | | |
| 485 | + | |
| 486 | + | |
467 | 487 | | |
468 | 488 | | |
469 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
| |||
1772 | 1775 | | |
1773 | 1776 | | |
1774 | 1777 | | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
1775 | 1781 | | |
1776 | 1782 | | |
1777 | 1783 | | |
| |||
12502 | 12508 | | |
12503 | 12509 | | |
12504 | 12510 | | |
| 12511 | + | |
| 12512 | + | |
| 12513 | + | |
12505 | 12514 | | |
12506 | 12515 | | |
12507 | 12516 | | |
| |||
0 commit comments