[PR #2554] [MERGED] Backport: Sync releases table with tags on push and for mirrors (#2459) #16463

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2554
Author: @lafriks
Created: 9/20/2017
Status: Merged
Merged: 9/20/2017
Merged by: @lafriks

Base: release/v1.2Head: backport_tag_sync


📝 Commits (1)

  • 02ce2c4 Sync releases table with tags on push and for mirrors (#2459)

📊 Changes

10 files changed (+366 additions, -118 deletions)

View changed files

📝 models/migrations/migrations.go (+2 -0)
models/migrations/v42.go (+57 -0)
📝 models/release.go (+75 -14)
📝 models/repo.go (+4 -0)
📝 models/repo_mirror.go (+10 -0)
📝 models/update.go (+100 -5)
📝 modules/context/repo.go (+1 -0)
📝 routers/api/v1/repo/release.go (+48 -41)
📝 routers/repo/release.go (+53 -45)
📝 templates/repo/release/list.tmpl (+16 -13)

📄 Description

  • Sync releases table with tags on push and for mirrors

  • Code style fixes

  • Fix api to return only releases

  • Optimize release creation and update
    Minimize posibility of race conditions

  • Fix release lower tag name updating

  • handle tag reference update by addionally comparing commit id


🔄 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/2554 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 9/20/2017 **Status:** ✅ Merged **Merged:** 9/20/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `release/v1.2` ← **Head:** `backport_tag_sync` --- ### 📝 Commits (1) - [`02ce2c4`](https://github.com/go-gitea/gitea/commit/02ce2c4195cc3523c4cbd621d49e3e3d1b71ce65) Sync releases table with tags on push and for mirrors (#2459) ### 📊 Changes **10 files changed** (+366 additions, -118 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v42.go` (+57 -0) 📝 `models/release.go` (+75 -14) 📝 `models/repo.go` (+4 -0) 📝 `models/repo_mirror.go` (+10 -0) 📝 `models/update.go` (+100 -5) 📝 `modules/context/repo.go` (+1 -0) 📝 `routers/api/v1/repo/release.go` (+48 -41) 📝 `routers/repo/release.go` (+53 -45) 📝 `templates/repo/release/list.tmpl` (+16 -13) </details> ### 📄 Description * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id --- <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:11:14 -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#16463