[PR #1407] [MERGED] Mirror sync interval specified as duration string #15895

Closed
opened 2025-11-02 11:57:08 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1407
Author: @cez81
Created: 3/29/2017
Status: Merged
Merged: 4/8/2017
Merged by: @lunny

Base: masterHead: mirror_interval


📝 Commits (10+)

📊 Changes

10 files changed (+90 additions, -21 deletions)

View changed files

📝 conf/app.ini (+4 -2)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v27.go (+56 -0)
📝 models/repo.go (+1 -1)
📝 models/repo_mirror.go (+3 -3)
📝 modules/auth/repo_form.go (+1 -1)
📝 modules/setting/setting.go (+13 -8)
📝 options/locale/locale_en-US.ini (+2 -1)
📝 routers/repo/setting.go (+7 -4)
📝 templates/repo/settings/options.tmpl (+1 -1)

📄 Description

My attempt on solution for #1140. Would love to hear your comments if I'mon the right track?

Mirror.Interval is changed from int to string so that would require a migration script?


🔄 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/1407 **Author:** [@cez81](https://github.com/cez81) **Created:** 3/29/2017 **Status:** ✅ Merged **Merged:** 4/8/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `mirror_interval` --- ### 📝 Commits (10+) - [`3372c69`](https://github.com/go-gitea/gitea/commit/3372c69bf90a6235355bb3a6d1e5ddc9daa40444) Sync interval specifed as duration string - [`29376da`](https://github.com/go-gitea/gitea/commit/29376dad20c2a81afe231ef89a33b44b50e500df) Changed mirror interval text - [`91c3aaf`](https://github.com/go-gitea/gitea/commit/91c3aafb54674ce5d2ff9ece29ec348c8faa1371) make fmt - [`5e7c691`](https://github.com/go-gitea/gitea/commit/5e7c691c08aeed78734eaf505450f145506fd4cc) Add MinInterval for mirror sync - [`f807596`](https://github.com/go-gitea/gitea/commit/f807596f70494d948129d814d67aa61943a58e47) Use duration internally - [`266fb0f`](https://github.com/go-gitea/gitea/commit/266fb0f1b9894d379c6caf23741949ee1b9db65a) Changed min default to 10m - [`9b0df2d`](https://github.com/go-gitea/gitea/commit/9b0df2dc1b61ba8593e5e9058d456cd09eef5902) make fmt - [`c1c0f8e`](https://github.com/go-gitea/gitea/commit/c1c0f8e3a6f5d686806092378a245065ab2e87af) Incorrect default - [`c4c60b7`](https://github.com/go-gitea/gitea/commit/c4c60b7a5dfb6499893309bda80c3a0662f58174) Removed defaults in MustDuration() - [`245c1a3`](https://github.com/go-gitea/gitea/commit/245c1a36bed1b218576ffc1f18fab811bcd866e4) Add Mirror interval migration ### 📊 Changes **10 files changed** (+90 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+4 -2) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v27.go` (+56 -0) 📝 `models/repo.go` (+1 -1) 📝 `models/repo_mirror.go` (+3 -3) 📝 `modules/auth/repo_form.go` (+1 -1) 📝 `modules/setting/setting.go` (+13 -8) 📝 `options/locale/locale_en-US.ini` (+2 -1) 📝 `routers/repo/setting.go` (+7 -4) 📝 `templates/repo/settings/options.tmpl` (+1 -1) </details> ### 📄 Description My attempt on solution for #1140. Would love to hear your comments if I'mon the right track? Mirror.Interval is changed from int to string so that would require a migration script? --- <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 11:57:08 -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#15895