Commit 7914169
fix: handle string WikiType enum from ADO API in branch resolution (#122)
The ADO Wiki REST API returns the wiki type as a string enum
("codeWiki" / "projectWiki"), not a numeric value. The previous
code used as_u64() which always returned None for strings, causing
every wiki to be misidentified as a project wiki. This meant the
versionDescriptor was never added to PUT requests on code wikis,
triggering HTTP 400 errors.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a057598 commit 7914169
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
0 commit comments