mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-22 11:04:01 +01:00
Release assets and other attachments had no content digest, so tools that download release binaries could not verify them. This records one and shows it on the releases page in a GitHub-like asset list. - Record the SHA-256 of each attachment while it streams to storage, migrated release assets included - Return it as `digest: "sha256:<hex>"` in the attachment API, the field GitHub uses for release assets - Lay out release assets in columns for digest with copy button, download count, size and date, stacked under the name on narrow screens - Rename the "Downloads" section to "Assets" and show the asset count - Attachments uploaded before this have no digest, backfilling them is left for a follow-up | Before | After | | --- | --- | | <img width="600" alt="before-desktop" src="https://github.com/user-attachments/assets/d6f290b4-5fba-4ee2-86c0-82c0bd77f702" /> | <img width="600" alt="after-desktop" src="https://github.com/user-attachments/assets/11bafe88-331d-4e96-9455-87774db539d8" /> | | <img width="360" alt="before-mobile" src="https://github.com/user-attachments/assets/22a83b07-ca43-4cc6-8d2a-c1fc92a32dfe" /> | <img width="370" alt="after-mobile" src="https://github.com/user-attachments/assets/d013b7d1-0683-4983-9864-5dbc7844f27d" /> | --------- Co-authored-by: silverwind <me@silverwind.io>