https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-a-release
The Get a Release API returns digests of assets.
To get digests, we need to add the field Digest and the method GetDigest to ReleaseAsset.
| // ReleaseAsset represents a GitHub release asset in a repository. |
| typeReleaseAssetstruct { |
| ID*int64`json:"id,omitempty"` |
| URL*string`json:"url,omitempty"` |
| Name*string`json:"name,omitempty"` |
| Label*string`json:"label,omitempty"` |
| State*string`json:"state,omitempty"` |
| ContentType*string`json:"content_type,omitempty"` |
| Size*int`json:"size,omitempty"` |
| DownloadCount*int`json:"download_count,omitempty"` |
| CreatedAt*Timestamp`json:"created_at,omitempty"` |
| UpdatedAt*Timestamp`json:"updated_at,omitempty"` |
| BrowserDownloadURL*string`json:"browser_download_url,omitempty"` |
| Uploader*User`json:"uploader,omitempty"` |
| NodeID*string`json:"node_id,omitempty"` |
| } |
I'll send a pull request soon.
https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-a-release
The
Get a ReleaseAPI returns digests of assets.To get digests, we need to add the field
Digestand the methodGetDigesttoReleaseAsset.go-github/github/repos_releases.go
Lines 67 to 82 in 8759b17
I'll send a pull request soon.