Fix UUID cast in task creation, add kind test manifests

- Fix parent_task_id NULLIF cast to UUID type in INSERT query
- Fix itoa helper to use strconv.Itoa
- Handle AddReaction errors gracefully in webhook handler
- Add hack/kind/ manifests for local testing with kind cluster
This commit is contained in:
2026-06-10 22:22:57 +10:00
parent 49d514c050
commit c13b2ae999
8 changed files with 252 additions and 3 deletions
+3 -1
View File
@@ -84,7 +84,9 @@ func (h *WebhookHandler) HandleGitea(w http.ResponseWriter, r *http.Request) {
"author", event.Author,
)
h.provider.AddReaction(parts[0], parts[1], event.CommentID, "eyes")
if err := h.provider.AddReaction(parts[0], parts[1], event.CommentID, "eyes"); err != nil {
slog.Warn("failed to add reaction", "error", err)
}
}
w.WriteHeader(http.StatusAccepted)