-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add push to remote mirror repository #15157
Conversation
waiting for this very eagerly |
@KN4CK3R |
models/repo_pushmirror.go
Outdated
// PushMirrorsIterate iterates all push-mirror repositories. | ||
func PushMirrorsIterate(f func(idx int, bean interface{}) error) error { | ||
return x. | ||
Where("last_update + (interval / ?) <= ?", time.Second, time.Now().Unix()). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should use xorm.Builder so xorm take care of different sql dialects
Please resolve the conflict. |
@lunny done |
Hi, Can I create a link from existing Gitea repo to remote Github repo and do pull/push based on certain interval using this feature? |
To push avterwards ... if you have more questions ask us on discord @ayushmnnit |
Adds the ability to push-mirror a repository to a remote destination.
ToDo:
close #3480
maybe #2280