···
record := tangled.RepoIssueComment{}
err = json.Unmarshal(raw, &record)
-
l.Error("invalid record", "err", err)
comment, err := db.IssueCommentFromRecord(ddb, did, rkey, record)
-
l.Error("failed to parse comment from record", "err", err)
sanitizer := markup.NewSanitizer()
···
err = db.NewIssueComment(ddb, &comment)
-
l.Error("failed to create issue comment", "err", err)
···
record := tangled.RepoIssueComment{}
err = json.Unmarshal(raw, &record)
-
l.Error("invalid record", "err", err)
sanitizer := markup.NewSanitizer()
···
err = db.UpdateCommentByRkey(ddb, did, rkey, record.Body)
-
l.Error("failed to update issue comment", "err", err)
case models.CommitOperationDelete:
if err := db.DeleteCommentByRkey(ddb, did, rkey); err != nil {
-
l.Error("failed to delete", "err", err)
return fmt.Errorf("failed to delete issue comment record: %w", err)
···
record := tangled.RepoIssueComment{}
err = json.Unmarshal(raw, &record)
+
return fmt.Errorf("invalid record: %w", err)
comment, err := db.IssueCommentFromRecord(ddb, did, rkey, record)
+
return fmt.Errorf("failed to parse comment from record: %w", err)
sanitizer := markup.NewSanitizer()
···
err = db.NewIssueComment(ddb, &comment)
+
return fmt.Errorf("failed to create issue comment: %w", err)
···
record := tangled.RepoIssueComment{}
err = json.Unmarshal(raw, &record)
+
return fmt.Errorf("invalid record: %w", err)
sanitizer := markup.NewSanitizer()
···
err = db.UpdateCommentByRkey(ddb, did, rkey, record.Body)
+
return fmt.Errorf("failed to update issue comment: %w", err)
case models.CommitOperationDelete:
if err := db.DeleteCommentByRkey(ddb, did, rkey); err != nil {
return fmt.Errorf("failed to delete issue comment record: %w", err)