Add Co-authored-by trailers to Merge's squash commit

This commit is contained in:
Ian Gulliver
2026-10-15 07:15:51 -07:00
parent c778741a4a
commit 60a1d221f4
15 changed files with 478 additions and 123 deletions
+15
View File
@@ -301,6 +301,21 @@ func (s *Server) GetUnmerged(w http.ResponseWriter, r *http.Request, taskID stri
})
}
func (s *Server) GetCoAuthors(w http.ResponseWriter, r *http.Request, taskID string) {
_, err := s.store.GetTask(r.Context(), taskID)
if err != nil {
writeStoreError(w, err)
return
}
coAuthors, err := s.agents.CoAuthors(r.Context(), taskID, actor(r))
if err != nil {
writeError(w, http.StatusInternalServerError, err)
return
}
writeJSON(w, http.StatusOK, coAuthors)
}
func (s *Server) MergeTask(w http.ResponseWriter, r *http.Request, taskID string) {
t, p, ok := s.activeTask(w, r, taskID)
if !ok {