Skip to content

Draft releases fail to convert because of null archive URLs #256

Backlog

Description

@SeanTAllen

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:

{"draft": true, "published_at": null, "tarball_url": null, "zipball_url": null, "body": null}

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

  1. added theissue type on Dec 5, 2026
  2. added
    discuss during sync
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discuss during sync

    Type

    Fields

    Priority

    None yet

    Review Level

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions