Commit Graph

12 Commits

Author SHA1 Message Date
88cafc096f Drop unused import in api/release.rs 2025-06-08 10:43:32 -05:00
4a0addda67 Fold client-error-decode into a util function 2025-06-07 23:40:58 -05:00
d42cbbc1ec Drop unused imports 2025-06-07 23:22:48 -05:00
96e9ff4ce6 Interrogate create_release result more closely 2025-06-07 23:22:20 -05:00
6bdad44cc6 Interrogate list_releases result more closely 2025-06-07 23:15:39 -05:00
e0c21fceaf Autoformat the whole thing
I've been putting this off because I don't want to have many small
formatting commits, and I don't have any kind of pre-commit hook to do
it for me. So here it is :v
2025-06-01 13:28:06 -05:00
fac607719d Move the CreateResult enum into the releases mod
This thing only needs to exist so Serde can decode the response JSON
properly. I'll either get a success, a missing token, *no body at all
which doesnt' make sense*, or some other ApiError text. In all cases,
the crate::Result is returned. This thing doesn't need to be public.
2025-06-01 11:07:11 -05:00
ee42e09620 Fix API response decoding -- sometimes it's an err
The reqwest might work, but the API still returns an error message.
I forgot about this old hack I had left around because I'm a big dummy.
2025-05-31 22:46:54 -05:00
4250deb419 Implement new fn create_release() 2025-05-28 20:27:52 -05:00
d3a0d3f67e Fix the URL path to actually go to the API 2025-05-28 19:27:32 -05:00
472e592400 Implement the new ::api::list_releases function 2025-05-27 23:03:09 -05:00
84bd7fe990 Fix release API module's name 2025-05-27 20:52:23 -05:00