Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh release create seems to not respect --latest=false #10695

Open
nhtyy opened this issue Mar 29, 2025 · 5 comments
Open

gh release create seems to not respect --latest=false #10695

nhtyy opened this issue Mar 29, 2025 · 5 comments
Labels
bug Something isn't working core This issue is not accepting PRs from outside contributors platform Problems with the GitHub platform rather than the CLI client

Comments

@nhtyy
Copy link

nhtyy commented Mar 29, 2025

Describe the bug

This command in my workflow always sets it to latest

gh release create ${{ steps.release_info.outputs.tag_name }} --target main --generate-notes --latest=false

Affected version

gh version 2.69.0 (2025-03-19)

Logs

Run GH_DEBUG=api gh release create v4.1.6 --target main --generate-notes --latest=false

  GH_DEBUG=api gh release create v4.1.6 --target main --generate-notes --latest=false
  shell: /usr/bin/bash -e {0}
  env:
    CARGO_TERM_COLOR: always
    RUNS_ON_AGENT_ARCH: x64
    RUNS_ON_RUNNER_NAME: runs-on--i-04d716a7f6d03f3bf--MbUsQWTOUe
    RUNS_ON_AGENT_USER: runner
    RUNS_ON_S3_BUCKET_CACHE: runs-on-s3bucketcache-ytsrarcjmczn
    RUNS_ON_AWS_REGION: us-east-1
    RUNS_ON_AMI_NAME: runs-on-v[2](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:2).2-ubuntu22-full-x64-20250320102012
    RUNS_ON_INSTANCE_TYPE: c7i-flex.2xlarge
    RUNS_ON_INSTANCE_ID: i-04d716a7f6d0[3](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:3)f3bf
    RUNS_ON_INSTANCE_LIFECYCLE: spot
    ACTIONS_RUNNER_HOOK_JOB_STARTED: /opt/runs-on/pre.sh
    ACTIONS_RUNNER_HOOK_JOB_COMPLETED: /opt/runs-on/post.sh
    pythonLocation: /home/runner/_work/_tool/Python/3.10.16/x6[4](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:4)
    PKG_CONFIG_PATH: /home/runner/_work/_tool/Python/3.10.16/x64/lib/pkgconfig
    Python_ROOT_DIR: /home/runner/_work/_tool/Python/3.10.16/x64
    Python2_ROOT_DIR: /home/runner/_work/_tool/Python/3.10.16/x64
    Python3_ROOT_DIR: /home/runner/_work/_tool/Python/3.10.16/x64
    LD_LIBRARY_PATH: /home/runner/_work/_tool/Python/3.10.16/x64/lib
    GH_TOKEN: ***
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
[git tag --list v4.1.6 --format=%(contents)]
[git tag --list v4.1.6 --format=%(contents:signature)]
* Request at 202[5](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:5)-03-29 01:31:19.966482717 +0000 UTC m=+0.358083281
* Request to https://api.github.com/repos/succinctlabs/sp1/releases
> POST /repos/succinctlabs/sp1/releases HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 132
> Content-Type: application/json; charset=utf-8
> Time-Zone: Etc/UTC
> User-Agent: GitHub CLI 2.[6](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:6)9.0

{
  "draft": false,
  "generate_release_notes": true,
  "make_latest": "false",
  "prerelease": false,
  "tag_name": "v4.1.6",
  "target_commitish": "main"
}

< HTTP/2.0 201 Created
https://github.com/succinctlabs/sp1/releases/tag/v4.1.6
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Length: 25[7](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:7)9
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-[8](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:8)
< Date: Sat, 29 Mar 2025 01:31:20 GMT
< Etag: "0adb4ab1afc2df28be6e[9](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:9)30b9febc3aca64441bd6f38e54184185b999ae2043c"
< Location: https://api.github.com/repos/succinctlabs/sp1/releases/209[10](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:10)9986
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Github-Permissions: contents=write; contents=write,workflows=write
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-[11](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:11)-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: B7F0:209894:6FBC6EB:DF9D55B:67E74D67
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 4731
< X-Ratelimit-Reset: 1743213627
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 269
< X-Xss-Protection: 0

{
  "url": "https://api.github.com/repos/succinctlabs/sp1/releases/209109986",
  "assets_url": "https://api.github.com/repos/succinctlabs/sp1/releases/209109986/assets",
  "upload_url": "https://uploads.github.com/repos/succinctlabs/sp1/releases/209109986/assets{?name,label}",
  "html_url": "https://github.com/succinctlabs/sp1/releases/tag/v4.1.6",
  "id": 209109986,
  "author": {
    "login": "github-actions[bot]",
    "id": 41898282,
    "node_id": "MDM6Qm90NDE4OTgyODI=",
    "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/github-actions%5Bbot%5D",
    "html_url": "https://github.com/apps/github-actions",
    "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
    "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
    "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
    "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
    "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
    "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
    "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
    "type": "Bot",
    "user_view_type": "public",
    "site_admin": false
  },
  "node_id": "RE_kwDOK1yaac4MdsPi",
  "tag_name": "v4.1.6",
  "target_commitish": "main",
  "name": "v4.1.6",
  "draft": false,
  "prerelease": false,
  "created_at": "2025-03-28T02:49:27Z",
  "published_at": "2025-03-29T01:31:20Z",
  "assets": [],
  "tarball_url": "https://api.github.com/repos/succinctlabs/sp1/tarball/v4.1.6",
  "zipball_url": "https://api.github.com/repos/succinctlabs/sp1/zipball/v4.1.6",
  "body": "## What's Changed\n* chore: bump to 4.1.5 after bumping bn crate by @jtguibas in https://github.com/succinctlabs/sp1/pull/2168\n* fix(sdk): retry network client creation failures by @mattstam in https://github.com/succinctlabs/sp1/pull/2174\n* chore: don't use deprecated clap attributes by @leruaa in https://github.com/succinctlabs/sp1/pull/2177\n* fix: improve errors for elf decode by @tqn in https://github.com/succinctlabs/sp1/pull/2179\n* chore: bump to version 4.1.6, update p3 to 0.2.2 by @tqn in https://github.com/succinctlabs/sp1/pull/2181\n* chore: release 4.1.6 by @jtguibas in https://github.com/succinctlabs/sp1/pull/2169\n\n\n**Full Changelog**: https://github.com/succinctlabs/sp1/compare/v4.1.4...v4.1.6",
  "mentions_count": 4
}

* Request took 1.0[12](https://github.com/succinctlabs/sp1/actions/runs/14140795957/job/39621703743#step:6:12)931588s
@nhtyy nhtyy added the bug Something isn't working label Mar 29, 2025
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Mar 29, 2025
@nhtyy
Copy link
Author

nhtyy commented Mar 29, 2025

Its interesting because clearly the api request has "latest": false, maybe an issue in the github api then?

@iamazeem
Copy link
Contributor

Verified and each new release is marked as the latest.

API: Create a release

Tested with gh api command like this:

$ GH_DEBUG=api gh api \
  --method POST \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /repos/iamazeem/test/releases \
  -f "tag_name=v1.0.0"\
  -f "make_latest=false"

According to its make_latest path parameter:

Image

Not sure if this sentence highlights this behavior or not:

Defaults to true for newly published releases.

Some clarification from the API side would definitely be helpful.

@jtmcg
Copy link
Member

jtmcg commented Mar 31, 2025

Hey y'all, thanks for this and the extra investigation. I'll do some internal investigation and get back to you

@jtmcg jtmcg self-assigned this Mar 31, 2025
@jtmcg
Copy link
Member

jtmcg commented Mar 31, 2025

Alright, I've been able to reliably repro using these commands while on the main branch in the OWNER/REPO local repo:

gh release create
$ GH_DEBUG=api gh release create v0.0.5 --target main --generate-notes --latest=false
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
* Request at 2025-03-31 15:19:49.334234 -0400 EDT m=+0.074124126
* Request to https://api.github.com/graphql
> POST /graphql HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 401
> Content-Type: application/json; charset=utf-8
> Graphql-Features: merge_queue
> Time-Zone: America/New_York
> User-Agent: GitHub CLI 2.66.0

GraphQL query:
fragment repo on Repository {
    id
    name
    owner { login }
    viewerPermission
    defaultBranchRef {
      name
    }
    isPrivate
  }
  query RepositoryNetwork {
    viewer { login }
    
    repo_000: repository(owner: "OWNER", name: "REPO") {
      ...repo
      parent {
        ...repo
      }
    }
    
  }
GraphQL variables: null

< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 31 Mar 2025 19:19:50 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Media-Type: github.v4; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: C704:18AFE1:51A728E:A327747:67EAEAD5
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: delete_repo, gist, read:org, read:packages, read:project, repo, workflow
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 5000
< X-Ratelimit-Reset: 1743451503
< X-Ratelimit-Resource: graphql
< X-Ratelimit-Used: 3
< X-Xss-Protection: 0

{
  "data": {
    "viewer": {
      "login": "jtmcg"
    },
    "repo_000": {
      "id": "R_kgDOMdKjQA",
      "name": "REPO",
      "owner": {
        "login": "OWNER"
      },
      "viewerPermission": "ADMIN",
      "defaultBranchRef": {
        "name": "main"
      },
      "isPrivate": true,
      "parent": null
    }
  }
}

* Request took 907.647333ms
[git tag --list v0.0.5 --format=%(contents)]
[git tag --list v0.0.5 --format=%(contents:signature)]
* Request at 2025-03-31 15:19:50.309235 -0400 EDT m=+1.049135459
* Request to https://api.github.com/repos/OWNER/REPO/releases
> POST /repos/OWNER/REPO/releases HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 132
> Content-Type: application/json; charset=utf-8
> Time-Zone: America/New_York
> User-Agent: GitHub CLI 2.66.0

{
  "draft": false,
  "generate_release_notes": true,
  "make_latest": "false",
  "prerelease": false,
  "tag_name": "v0.0.5",
  "target_commitish": "main"
}

< HTTP/2.0 201 Created
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Length: 1786
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 31 Mar 2025 19:19:50 GMT
< Etag: "11e493068a02c508246d91671207be04abcf18baedcfed1770a7a7a5a25bba25"
< Location: https://api.github.com/repos/OWNER/REPO/releases/209431732
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: C704:18AFE1:51A761A:A327E5E:67EAEAD6
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: delete_repo, gist, read:org, read:packages, read:project, repo, workflow
< X-Ratelimit-Limit: 15000
< X-Ratelimit-Remaining: 14992
< X-Ratelimit-Reset: 1743451132
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 8
< X-Xss-Protection: 0

{
  "url": "https://api.github.com/repos/OWNER/REPO/releases/209431732",
  "assets_url": "https://api.github.com/repos/OWNER/REPO/releases/209431732/assets",
  "upload_url": "https://uploads.github.com/repos/OWNER/REPO/releases/209431732/assets{?name,label}",
  "html_url": "https://github.com/OWNER/REPO/releases/tag/v0.0.5",
  "id": 209431732,
  "author": {
    "login": "jtmcg",
    "id": 5891697,
    "node_id": "MDQ6VXNlcjU4OTE2OTc=",
    "avatar_url": "https://avatars.githubusercontent.com/u/5891697?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/jtmcg",
    "html_url": "https://github.com/jtmcg",
    "followers_url": "https://api.github.com/users/jtmcg/followers",
    "following_url": "https://api.github.com/users/jtmcg/following{/other_user}",
    "gists_url": "https://api.github.com/users/jtmcg/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/jtmcg/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/jtmcg/subscriptions",
    "organizations_url": "https://api.github.com/users/jtmcg/orgs",
    "repos_url": "https://api.github.com/users/jtmcg/repos",
    "events_url": "https://api.github.com/users/jtmcg/events{/privacy}",
    "received_events_url": "https://api.github.com/users/jtmcg/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": true
  },
  "node_id": "RE_kwDOMdKjQM4Me6y0",
  "tag_name": "v0.0.5",
  "target_commitish": "main",
  "name": "v0.0.5",
  "draft": false,
  "prerelease": false,
  "created_at": "2025-03-31T19:19:39Z",
  "published_at": "2025-03-31T19:19:50Z",
  "assets": [],
  "tarball_url": "https://api.github.com/repos/OWNER/REPO/tarball/v0.0.5",
  "zipball_url": "https://api.github.com/repos/OWNER/REPO/zipball/v0.0.5",
  "body": "**Full Changelog**: https://github.com/OWNER/REPO/compare/v0.0.1...v0.0.5"
}
gh api
$ GH_DEBUG=api gh api \
→   --method POST \
→   -H "Accept: application/vnd.github+json" \
→   -H "X-GitHub-Api-Version: 2022-11-28" \
→   /repos/OWNER/REPO/releases \
→   -f "tag_name=v0.6.0"\
→   -f "make_latest=false"
* Request at 2025-03-31 15:23:46.822775 -0400 EDT m=+0.073417376
* Request to https://api.github.com/repos/OWNER/REPO/releases
> POST /repos/OWNER/REPO/releases HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github+json
> Authorization: token ████████████████████
> Content-Length: 43
> Content-Type: application/json; charset=utf-8
> Time-Zone: America/New_York
> User-Agent: GitHub CLI 2.66.0
> X-Github-Api-Version: 2022-11-28

{
  "make_latest": "false",
  "tag_name": "v0.6.0"
}

< HTTP/2.0 201 Created
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Length: 1694
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 31 Mar 2025 19:23:47 GMT
< Etag: "0b727a8020e7ce862a9a364f57a0d2048538f61884f1a6948c75ad3f5103a5e1"
< Location: https://api.github.com/repos/OWNER/REPO/releases/209432594
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; format=json
< X-Github-Request-Id: C75A:13E015:3351D64:6698F26:67EAEBC2
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: delete_repo, gist, read:org, read:packages, read:project, repo, workflow
< X-Ratelimit-Limit: 15000
< X-Ratelimit-Remaining: 14982
< X-Ratelimit-Reset: 1743451132
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 18
< X-Xss-Protection: 0

{
  "url": "https://api.github.com/repos/OWNER/REPO/releases/209432594",
  "assets_url": "https://api.github.com/repos/OWNER/REPO/releases/209432594/assets",
  "upload_url": "https://uploads.github.com/repos/OWNER/REPO/releases/209432594/assets{?name,label}",
  "html_url": "https://github.com/OWNER/REPO/releases/tag/v0.6.0",
  "id": 209432594,
  "author": {
    "login": "jtmcg",
    "id": 5891697,
    "node_id": "MDQ6VXNlcjU4OTE2OTc=",
    "avatar_url": "https://avatars.githubusercontent.com/u/5891697?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/jtmcg",
    "html_url": "https://github.com/jtmcg",
    "followers_url": "https://api.github.com/users/jtmcg/followers",
    "following_url": "https://api.github.com/users/jtmcg/following{/other_user}",
    "gists_url": "https://api.github.com/users/jtmcg/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/jtmcg/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/jtmcg/subscriptions",
    "organizations_url": "https://api.github.com/users/jtmcg/orgs",
    "repos_url": "https://api.github.com/users/jtmcg/repos",
    "events_url": "https://api.github.com/users/jtmcg/events{/privacy}",
    "received_events_url": "https://api.github.com/users/jtmcg/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": true
  },
  "node_id": "RE_kwDOMdKjQM4Me7AS",
  "tag_name": "v0.6.0",
  "target_commitish": "main",
  "name": null,
  "draft": false,
  "prerelease": false,
  "created_at": "2025-03-31T19:19:39Z",
  "published_at": "2025-03-31T19:23:47Z",
  "assets": [],
  "tarball_url": "https://api.github.com/repos/OWNER/REPO/tarball/v0.6.0",
  "zipball_url": "https://api.github.com/repos/OWNER/REPO/zipball/v0.6.0",
  "body": null
}

* Request took 489.196ms
{
  "url": "https://api.github.com/repos/OWNER/REPO/releases/209432594",
  "assets_url": "https://api.github.com/repos/OWNER/REPO/releases/209432594/assets",
  "upload_url": "https://uploads.github.com/repos/OWNER/REPO/releases/209432594/assets{?name,label}",
  "html_url": "https://github.com/OWNER/REPO/releases/tag/v0.6.0",
  "id": 209432594,
  "author": {
    "login": "jtmcg",
    "id": 5891697,
    "node_id": "MDQ6VXNlcjU4OTE2OTc=",
    "avatar_url": "https://avatars.githubusercontent.com/u/5891697?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/jtmcg",
    "html_url": "https://github.com/jtmcg",
    "followers_url": "https://api.github.com/users/jtmcg/followers",
    "following_url": "https://api.github.com/users/jtmcg/following{/other_user}",
    "gists_url": "https://api.github.com/users/jtmcg/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/jtmcg/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/jtmcg/subscriptions",
    "organizations_url": "https://api.github.com/users/jtmcg/orgs",
    "repos_url": "https://api.github.com/users/jtmcg/repos",
    "events_url": "https://api.github.com/users/jtmcg/events{/privacy}",
    "received_events_url": "https://api.github.com/users/jtmcg/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": true
  },
  "node_id": "RE_kwDOMdKjQM4Me7AS",
  "tag_name": "v0.6.0",
  "target_commitish": "main",
  "name": null,
  "draft": false,
  "prerelease": false,
  "created_at": "2025-03-31T19:19:39Z",
  "published_at": "2025-03-31T19:23:47Z",
  "assets": [],
  "tarball_url": "https://api.github.com/repos/OWNER/REPO/tarball/v0.6.0",
  "zipball_url": "https://api.github.com/repos/OWNER/REPO/zipball/v0.6.0",
  "body": null
}

A few things to note:

  1. This repo had no releases before today.
  2. I reliably reproduced this with releases v0.0.1-v0.0.4 before doing it again with v0.0.5 and v0.0.6 as demonstrated above.
  3. I only verified that these were set as latest by the UI tag and not by the API
  4. I observed the same behavior when the new release was on the same commit as the previous release AND when the new release was on a future commit from the previous release

@jtmcg
Copy link
Member

jtmcg commented Apr 2, 2025

@nhtyy, this has been transferred to the team that owns the endpoint. Thanks for reporting the bug! I'm not sure when it will be fixed, but it's on their radar. I'll keep this issue open for discoverability in the mean time and we can close it once the fix is in.

@jtmcg jtmcg added core This issue is not accepting PRs from outside contributors platform Problems with the GitHub platform rather than the CLI client and removed needs-triage needs to be reviewed labels Apr 2, 2025
@jtmcg jtmcg removed their assignment Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core This issue is not accepting PRs from outside contributors platform Problems with the GitHub platform rather than the CLI client
Projects
None yet
Development

No branches or pull requests

4 participants