diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-19 19:07:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 19:07:44 +0100 |
commit | b3318335986618388637a9d35d68b39633e4548a (patch) | |
tree | 00caadd3bf8a96f1dc5bca092cdec7a73247f5f3 /bug | |
parent | 08122b3815dd9d684b50e5b901f34c879c3ae5b7 (diff) | |
parent | be763b4c4c7c5fd9e33bd53175364b3f9e781af7 (diff) | |
download | git-bug-b3318335986618388637a9d35d68b39633e4548a.tar.gz |
Merge pull request #250 from cheshirekow/cheshirekow-jira
Implement jira bridge
Diffstat (limited to 'bug')
-rw-r--r-- | bug/op_edit_comment.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bug/op_edit_comment.go b/bug/op_edit_comment.go index 44ee5877..f82e7590 100644 --- a/bug/op_edit_comment.go +++ b/bug/op_edit_comment.go @@ -156,3 +156,15 @@ func EditCommentWithFiles(b Interface, author identity.Interface, unixTime int64 b.Append(editCommentOp) return editCommentOp, nil } + +// Convenience function to edit the body of a bug (the first comment) +func EditCreateComment(b Interface, author identity.Interface, unixTime int64, message string) (*EditCommentOperation, error) { + createOp := b.FirstOp().(*CreateOperation) + return EditComment(b, author, unixTime, createOp.Id(), message) +} + +// Convenience function to edit the body of a bug (the first comment) +func EditCreateCommentWithFiles(b Interface, author identity.Interface, unixTime int64, message string, files []git.Hash) (*EditCommentOperation, error) { + createOp := b.FirstOp().(*CreateOperation) + return EditCommentWithFiles(b, author, unixTime, createOp.Id(), message, files) +} |