[PR #1707] [MERGED] Added URL mapping for Release attachments like on github.com #16008

Closed
opened 2025-11-02 12:00:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1707
Author: @al-sabr
Created: 5/11/2017
Status: Merged
Merged: 1/6/2019
Merged by: @techknowlogick

Base: masterHead: origin/git-style-release-url-attachments


📝 Commits (10+)

  • 5051282 Made changes from Staff code review
  • c3a4475 New file infos added for releases
  • 90e8b46 Refactored code and create File utility package
  • 1bc6f84 Refactored code to compile without error
  • b194556 Refactored code to compile without error
  • 7570b10 Reverted returned errors to correct values
  • 1b8ce6e Import bothered someone and wanted his wishlist to
  • c261b02 Fixed the release downloads without signin
  • 1372dde Removed commented code
  • 591e50a Removed unnecessary variable from code

📊 Changes

5 files changed (+71 additions, -9 deletions)

View changed files

📝 models/attachment.go (+17 -0)
📝 models/release.go (+10 -0)
📝 routers/repo/repo.go (+32 -0)
📝 routers/routes/routes.go (+3 -0)
📝 templates/repo/release/list.tmpl (+9 -9)

📄 Description

Implement a Git Hub style URL mapping for the attachment files in Release.

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1707 **Author:** [@al-sabr](https://github.com/al-sabr) **Created:** 5/11/2017 **Status:** ✅ Merged **Merged:** 1/6/2019 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `origin/git-style-release-url-attachments` --- ### 📝 Commits (10+) - [`5051282`](https://github.com/go-gitea/gitea/commit/5051282caac4914b3e64851bec7be4457da53104) Made changes from Staff code review - [`c3a4475`](https://github.com/go-gitea/gitea/commit/c3a447537a5b5df03b0f0436df884d7675462a5b) New file infos added for releases - [`90e8b46`](https://github.com/go-gitea/gitea/commit/90e8b46f6e888ca4da5e5b26a8c819bd9b732c4c) Refactored code and create File utility package - [`1bc6f84`](https://github.com/go-gitea/gitea/commit/1bc6f849dbf3cb0ba260b90239106856f7a02622) Refactored code to compile without error - [`b194556`](https://github.com/go-gitea/gitea/commit/b19455629b2b22d8e10dd1cab0f7969fed97b8f2) Refactored code to compile without error - [`7570b10`](https://github.com/go-gitea/gitea/commit/7570b10448979f6c65ffc1d482a1a0ba8804f8eb) Reverted returned errors to correct values - [`1b8ce6e`](https://github.com/go-gitea/gitea/commit/1b8ce6e4d37276e7862772e227c0a6d0e20906c8) Import bothered someone and wanted his wishlist to - [`c261b02`](https://github.com/go-gitea/gitea/commit/c261b0207c75470ed9ffd729dedbdbed6657c49c) Fixed the release downloads without signin - [`1372dde`](https://github.com/go-gitea/gitea/commit/1372ddefe17413dff610034dc159e030d3479714) Removed commented code - [`591e50a`](https://github.com/go-gitea/gitea/commit/591e50a1e759c49a1bfacbb2d0bda479975d3877) Removed unnecessary variable from code ### 📊 Changes **5 files changed** (+71 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/attachment.go` (+17 -0) 📝 `models/release.go` (+10 -0) 📝 `routers/repo/repo.go` (+32 -0) 📝 `routers/routes/routes.go` (+3 -0) 📝 `templates/repo/release/list.tmpl` (+9 -9) </details> ### 📄 Description Implement a Git Hub style URL mapping for the attachment files in Release. ![image](https://cloud.githubusercontent.com/assets/26530975/25948034/382a9924-3652-11e7-8859-92769715a1af.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:00:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16008