feat: pull request generation

This commit is contained in:
2025-03-06 22:47:02 +01:00
parent 4d6459fae5
commit 367f9f9e70
28 changed files with 1918 additions and 181 deletions

View File

@ -7,8 +7,8 @@ import (
)
type Handler struct {
mux *http.ServeMux
issueManager *service.IssueManager
mux *http.ServeMux
forge *service.ForgeManager
}
// ServeHTTP implements http.Handler.
@ -16,10 +16,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.mux.ServeHTTP(w, r)
}
func NewHandler(issueManager *service.IssueManager) *Handler {
func NewHandler(forge *service.ForgeManager) *Handler {
h := &Handler{
mux: http.NewServeMux(),
issueManager: issueManager,
mux: http.NewServeMux(),
forge: forge,
}
h.mux.HandleFunc("GET /", h.getIssuePage)