Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix mirror repository webhooks #7366
I found that mirror syncs will properly create hook tasks, however, the hook queue that gitea is monitoring is never updated/notified of the hook task for the repo and thus the hook task is never fulfilled. If you restart the gitea server, the goroutine first fulfills the current task list and then blocks on the hook queue. This is why any mirror action webhooks are sent on restart and why any new hook tasks created by mirror actions do not get fulfilled automatically.
Signed-off-by: Drew Kowalski email@example.com
@@ Coverage Diff @@ ## master #7366 +/- ## ========================================== - Coverage 41.24% 41.24% -0.01% ========================================== Files 467 467 Lines 63295 63298 +3 ========================================== Hits 26108 26108 - Misses 33770 33773 +3 Partials 3417 3417