API Patch and tag name

I don’t know if that’s the correct place to ask this, but I’ve been trying to find more information on this on the documentation, without success.

When using Github API, I’m doing the following:

  1. Creating a new draft release, with only a release name and a tag name (on this scenario, master for both of them), using a POST on the API.
  2. Using the url returned on the above call, I’m sending a  PATCH with only a body inside it, without specifying the tag or name or anything else, really.
  3. When checking the release on GH, the tag name is set as untagged-{commit_id}

Am I missing something?

POST JSON BODY

  {
    “tag_name”: “master”,

    “name”: “master”,

    “draft”: true

  }

PATCH JSON BODY

  {
    “body”: “Something something doesn’t matter”

  }

I can confirm the behavior that you’re seeing. I’ll pass it along to the appropriate team, but I can’t make any promises on if or exactly when it will get fixed. For now, I would recommend passing along the tag name any time you update the release information.

I hope that helps!