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

Webhook for mirrored repositories #1002

Closed
olymk2 opened this issue Feb 21, 2017 · 5 comments · Fixed by #4127
Closed

Webhook for mirrored repositories #1002

olymk2 opened this issue Feb 21, 2017 · 5 comments · Fixed by #4127
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Milestone

Comments

@olymk2
Copy link

olymk2 commented Feb 21, 2017

Not sure what the correct behavior would be, currently i am mirroring a branch from github into gitea and would like to trigger drone on a sync.

This currently does not seem to happen, i had a quick look in the code base and could not see any hooks for mirroring.

Seems we could hook into the pull web hook or perhaps it should be its own configurable hook in the admin area.

I may have a stab at this (maybe beyond my ability) but thought it would be good to have a discussion about how it should work or just general thought on the subject.

@lunny lunny added this to the 1.x.x milestone Feb 22, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Feb 22, 2017
@gzsombor
Copy link
Contributor

I've started doing something similar - basically the ability to run local scripts instead of calling web services. I thought this wouldn't be interesting to others, but if there is a need, I can contribute it.
For your use case, would you want to run a script ?

@olymk2
Copy link
Author

olymk2 commented Feb 22, 2017

I would certainly be interested in seeing you script, but it would be nice if it was a web hook as well just so its a standard way of working.

I am thinking in the back end have a checkbox to initiate webhook on sync with the mirror, can we detect if there are changes a part of the sync ?

And what should wee trigger can we trigger an existing hook like pull on mirror or should it be a totally separate one ?

@lunny lunny mentioned this issue Feb 23, 2017
20 tasks
@lunny lunny mentioned this issue Aug 29, 2017
6 tasks
@Mattze96
Copy link

what is the status on this?

@lunny
Copy link
Member

lunny commented Nov 22, 2017

@Mattze96 no people declared working on this.

@jonasob
Copy link

jonasob commented Apr 19, 2018

I would just like to echo this. Right now, I have a repository hosted on Github which is mirrored to a Gitea with Drone. I'd love if a mirror would trigger a webhook to fire off a build in Drone, just as if it was a direct commit to Gitea.

@lunny lunny mentioned this issue May 21, 2018
7 tasks
@lafriks lafriks modified the milestones: 1.x.x, 1.6.0 Jun 5, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants