mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 23:35:51 +03:00
Fix mirror sync not automatically sending webhook requests (#7366)
This commit is contained in:
parent
62d6127f1b
commit
89aa08d372
1 changed files with 5 additions and 0 deletions
|
@ -896,6 +896,11 @@ func mirrorSyncAction(e Engine, opType ActionType, repo *Repository, refName str
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return fmt.Errorf("notifyWatchers: %v", err)
|
return fmt.Errorf("notifyWatchers: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
go HookQueue.Add(repo.ID)
|
||||||
|
}()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue