Skip to content
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

Synchronize push mirror on push #18220

Closed
culmat opened this issue Jan 9, 2022 · 6 comments
Closed

Synchronize push mirror on push #18220

culmat opened this issue Jan 9, 2022 · 6 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@culmat
Copy link

culmat commented Jan 9, 2022

Feature Description

Allow a push mirror to synchronize on the push event like a web hook.
Make this the default behavior?

see also #18175
this would also provide a work around for #13539, as it would allow to trigger github actions on a mirror timely.

Screenshots

No response

@culmat culmat mentioned this issue Jan 9, 2022
7 tasks
@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jan 12, 2022
@zeripath
Copy link
Contributor

I think you're really asking for an API that would cause a push mirror to sync.

Now the issue here is who that API should be available and how often it can be called.

@kodermho
Copy link
Contributor

kodermho commented Feb 2, 2022

Seems similar to #16579

@guiohm
Copy link

guiohm commented Apr 9, 2022

I'm coming from Bitbucket and I was using this plugin: https://github.com/ef-labs/stash-hook-mirror/wiki
It pushes without any delay and is very convenient.

@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Apr 9, 2022
@harryzcy
Copy link
Contributor

I think you're really asking for an API that would cause a push mirror to sync.

Now the issue here is who that API should be available and how often it can be called.

I think this feature request means Gitea sync the repo with the "push mirror" every time new commits are pushed to Gitea, rather than syncing on scheduled intervals. So it's not a public API.

@lunny lunny added this to the 1.18.0 milestone Jul 2, 2022
zeripath added a commit that referenced this issue Jul 8, 2022
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: #18220

Co-authored-by: delvh <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
dineshsalunke pushed a commit to dineshsalunke/gitea that referenced this issue Jul 9, 2022
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: go-gitea#18220

Co-authored-by: delvh <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
@jotoho
Copy link

jotoho commented Jul 14, 2022

I think this feature request means Gitea sync the repo with the "push mirror" every time new commits are pushed to Gitea, rather than syncing on scheduled intervals. So it's not a public API.

If this interpretation is correct, I suspect that this issue is a duplicate of my issue #16579. (I have now closed the other issue)

@harryzcy
Copy link
Contributor

I believe this issue is resolved as #19411 has been merged

dineshsalunke pushed a commit to dineshsalunke/gitea that referenced this issue Jul 15, 2022
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: go-gitea#18220

Co-authored-by: delvh <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
vsysoev pushed a commit to IntegraSDL/gitea that referenced this issue Aug 10, 2022
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: go-gitea#18220

Co-authored-by: delvh <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
@lunny lunny closed this as completed Oct 17, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

7 participants