-
-
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
Webhook for mirrored repositories #1002
Comments
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. |
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 ? |
what is the status on this? |
@Mattze96 no people declared working on this. |
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. |
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.
The text was updated successfully, but these errors were encountered: