1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-23 17:53:23 +02:00

returning status for commit hook & rebuild handler

This commit is contained in:
Brad Rydzewski 2014-07-16 00:33:55 -07:00
parent a39be8e480
commit 25a6eb79ae
3 changed files with 4 additions and 1 deletions

View File

@ -166,6 +166,8 @@ func (h *CommitHandler) PostCommit(w http.ResponseWriter, r *http.Request) error
Commit: c,
}
}()
w.WriteHeader(http.StatusOK)
return nil
}

View File

@ -105,6 +105,8 @@ func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error {
Commit: &c,
}
}()
w.WriteHeader(http.StatusOK)
return nil
}

View File

@ -107,7 +107,6 @@ func main() {
handler.NewHookHandler(users, repos, commits, remotes, queue).Register(router)
handler.NewLoginHandler(users, repos, perms, sess, remotes).Register(router)
handler.NewCommitHandler(repos, commits, perms, sess, queue).Register(router)
handler.NewBranchHandler(repos, commits, perms, sess).Register(router)
handler.NewRepoHandler(repos, commits, perms, sess, remotes).Register(router)
handler.NewBadgeHandler(repos, commits).Register(router)
handler.NewServerHandler(servers, sess).Register(router)