Write writes a review comment as a JSON-formatted git note.
()
| 177 | |
| 178 | // Write writes a review comment as a JSON-formatted git note. |
| 179 | func (comment Comment) Write() (repository.Note, error) { |
| 180 | bytes, err := comment.serialize() |
| 181 | return repository.Note(bytes), err |
| 182 | } |
| 183 | |
| 184 | // Hash returns the SHA1 hash of a review comment. |
| 185 | func (comment Comment) Hash() (string, error) { |