Webhook for triggering sync of a mirrored repo #2536

Closed
opened 2025-11-02 04:39:43 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @calind on GitHub (Nov 15, 2018).

I'm mirroring a repo from github and it would be nice if I could add a webhook in github so that whenever I push to the github repo, the gitea repo is updated as well.

Originally created by @calind on GitHub (Nov 15, 2018). I'm mirroring a repo from github and it would be nice if I could add a webhook in github so that whenever I push to the github repo, the gitea repo is updated as well.
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 04:39:43 -06:00
Author
Owner

@fzwoch commented on GitHub (Aug 27, 2019):

I think this can be accomplished with this API: POST ​/repos​/{owner}​/{repo}​/mirror-sync

@fzwoch commented on GitHub (Aug 27, 2019): I think this can be accomplished with this API: `POST ​/repos​/{owner}​/{repo}​/mirror-sync`
Author
Owner

@xeruf commented on GitHub (Jul 7, 2022):

yep, but seems to be impossible in the current form as it requires authentication via token - entering it as secret on github does not work

references: https://docs.gitea.io/en-us/api-usage/
Delivering to /api/v1/repos/.../.../mirror-sync
image

@xeruf commented on GitHub (Jul 7, 2022): yep, but seems to be impossible in the current form as it requires authentication via token - entering it as secret on github does not work references: https://docs.gitea.io/en-us/api-usage/ Delivering to /api/v1/repos/.../.../mirror-sync <img width="662" alt="image" src="https://user-images.githubusercontent.com/13354331/177842465-eed724d8-9cac-45f6-9808-7452d1db759c.png">
Author
Owner

@lunny commented on GitHub (May 24, 2023):

Closed as I think it's resolved.

@lunny commented on GitHub (May 24, 2023): Closed as I think it's resolved.
Author
Owner

@wenerme commented on GitHub (May 24, 2023):

BTW, the token just need the repo scope

@wenerme commented on GitHub (May 24, 2023): BTW, the token just need the `repo` scope
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2536