[PR #2080] [MERGED] Fix release display and correct paging #16219

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2080
Author: @lafriks
Created: 6/28/2017
Status: Merged
Merged: 6/29/2017
Merged by: @lunny

Base: masterHead: fix/release_listing


📝 Commits (1)

  • afc8804 Fix release display and correct paging

📊 Changes

5 files changed (+135 additions, -39 deletions)

View changed files

📝 integrations/release_test.go (+93 -0)
models/fixtures/release.yml (+1 -0)
📝 models/release.go (+26 -22)
📝 routers/api/v1/repo/release.go (+8 -9)
📝 routers/repo/release.go (+7 -8)

📄 Description

  • Fixes displaying releases with paging when there are drafts and user has no rights to see drafts
  • Fix so that drafts can be seen not only by Owner but anyone with write rights to repository
  • Add integration tests to create new releases and paging

Fixes #1863


🔄 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/2080 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 6/28/2017 **Status:** ✅ Merged **Merged:** 6/29/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/release_listing` --- ### 📝 Commits (1) - [`afc8804`](https://github.com/go-gitea/gitea/commit/afc88048b158272d814944bd37073cb7a7d73362) Fix release display and correct paging ### 📊 Changes **5 files changed** (+135 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `integrations/release_test.go` (+93 -0) ➕ `models/fixtures/release.yml` (+1 -0) 📝 `models/release.go` (+26 -22) 📝 `routers/api/v1/repo/release.go` (+8 -9) 📝 `routers/repo/release.go` (+7 -8) </details> ### 📄 Description * Fixes displaying releases with paging when there are drafts and user has no rights to see drafts * Fix so that drafts can be seen not only by Owner but anyone with write rights to repository * Add integration tests to create new releases and paging Fixes #1863 --- <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:05:07 -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#16219