You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Draft releases fail to convert because of null archive URLs #256
GitHub sends null for tarball_url and zipball_url on a draft release. A draft has no tag until it's published, so there's no archive to link to. I checked by creating a draft on a scratch repository; both the create response and a later GET of the release had:
ReleaseJSONConverter reads both fields with as_string()?, so a draft fails to convert. CreateRelease with draft = true creates the draft on GitHub, then returns a RequestError. A caller who retries creates another draft each time.
#255 already made published_at and body accept None. Making Release.tarball_url and Release.zipball_url(String | None) too, read with JSONNavUtil.string_or_none, would let drafts convert. That changes the type of two public fields, and should go into the same release as #255 so callers get one migration.
Activity