AddComment adds the given comment to the review.
(c comment.Comment)
| 694 | |
| 695 | // AddComment adds the given comment to the review. |
| 696 | func (r *Review) AddComment(c comment.Comment) error { |
| 697 | commentNote, err := c.Write() |
| 698 | if err != nil { |
| 699 | return err |
| 700 | } |
| 701 | |
| 702 | r.Repo.AppendNote(comment.Ref, r.Revision, commentNote) |
| 703 | return nil |
| 704 | } |
| 705 | |
| 706 | // Rebase performs an interactive rebase of the review onto its target ref. |
| 707 | // |
no test coverage detected