MCPcopy
hub / github.com/google/git-appraise / AddComment

Method AddComment

review/review.go:696–704  ·  view source on GitHub ↗

AddComment adds the given comment to the review.

(c comment.Comment)

Source from the content-addressed store, hash-verified

694
695// AddComment adds the given comment to the review.
696func (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//

Callers 4

rejectReviewFunction · 0.95
commentOnReviewFunction · 0.95
abandonReviewFunction · 0.95
acceptReviewFunction · 0.95

Calls 2

AppendNoteMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected