mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 20:32:11 +00:00
#835: Realtime webhooks
This commit is contained in:
parent
2b1442f3df
commit
fa298a2c30
13 changed files with 140 additions and 69 deletions
|
@ -190,7 +190,10 @@ func Http(ctx *middleware.Context) {
|
|||
refName := fields[2]
|
||||
|
||||
// FIXME: handle error.
|
||||
models.Update(refName, oldCommitId, newCommitId, authUsername, username, reponame, authUser.Id)
|
||||
if err = models.Update(refName, oldCommitId, newCommitId, authUsername, username, reponame, authUser.Id); err == nil {
|
||||
models.HookQueue.AddRepoID(repo.Id)
|
||||
}
|
||||
|
||||
}
|
||||
lastLine = lastLine + size
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue