returning status for commit hook & rebuild handler
This commit is contained in:
parent
a39be8e480
commit
25a6eb79ae
3 changed files with 4 additions and 1 deletions
|
@ -166,6 +166,8 @@ func (h *CommitHandler) PostCommit(w http.ResponseWriter, r *http.Request) error
|
||||||
Commit: c,
|
Commit: c,
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,8 @@ func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error {
|
||||||
Commit: &c,
|
Commit: &c,
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,6 @@ func main() {
|
||||||
handler.NewHookHandler(users, repos, commits, remotes, queue).Register(router)
|
handler.NewHookHandler(users, repos, commits, remotes, queue).Register(router)
|
||||||
handler.NewLoginHandler(users, repos, perms, sess, remotes).Register(router)
|
handler.NewLoginHandler(users, repos, perms, sess, remotes).Register(router)
|
||||||
handler.NewCommitHandler(repos, commits, perms, sess, queue).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.NewRepoHandler(repos, commits, perms, sess, remotes).Register(router)
|
||||||
handler.NewBadgeHandler(repos, commits).Register(router)
|
handler.NewBadgeHandler(repos, commits).Register(router)
|
||||||
handler.NewServerHandler(servers, sess).Register(router)
|
handler.NewServerHandler(servers, sess).Register(router)
|
||||||
|
|
Loading…
Reference in a new issue