Skip to content

Commit 89aa08d

Browse files
akkowal2techknowlogick
authored andcommitted
Fix mirror sync not automatically sending webhook requests (#7366)
1 parent 62d6127 commit 89aa08d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

models/action.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,11 @@ func mirrorSyncAction(e Engine, opType ActionType, repo *Repository, refName str
896896
}); err != nil {
897897
return fmt.Errorf("notifyWatchers: %v", err)
898898
}
899+
900+
defer func() {
901+
go HookQueue.Add(repo.ID)
902+
}()
903+
899904
return nil
900905
}
901906

0 commit comments

Comments
 (0)