diff options
Diffstat (limited to 'bug/operations')
-rw-r--r-- | bug/operations/add_comment.go | 4 | ||||
-rw-r--r-- | bug/operations/label_change.go | 2 | ||||
-rw-r--r-- | bug/operations/set_status.go | 4 | ||||
-rw-r--r-- | bug/operations/set_title.go | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/bug/operations/add_comment.go b/bug/operations/add_comment.go index 7ae6f2dd..b4126a8e 100644 --- a/bug/operations/add_comment.go +++ b/bug/operations/add_comment.go @@ -42,11 +42,11 @@ func NewAddCommentOp(author bug.Person, message string, files []util.Hash) AddCo } // Convenience function to apply the operation -func Comment(b *bug.Bug, author bug.Person, message string) { +func Comment(b bug.Interface, author bug.Person, message string) { CommentWithFiles(b, author, message, nil) } -func CommentWithFiles(b *bug.Bug, author bug.Person, message string, files []util.Hash) { +func CommentWithFiles(b bug.Interface, author bug.Person, message string, files []util.Hash) { addCommentOp := NewAddCommentOp(author, message, files) b.Append(addCommentOp) } diff --git a/bug/operations/label_change.go b/bug/operations/label_change.go index 8f608dbc..5d343e5b 100644 --- a/bug/operations/label_change.go +++ b/bug/operations/label_change.go @@ -60,7 +60,7 @@ func NewLabelChangeOperation(author bug.Person, added, removed []bug.Label) Labe } // ChangeLabels is a convenience function to apply the operation -func ChangeLabels(out io.Writer, b *bug.Bug, author bug.Person, add, remove []string) error { +func ChangeLabels(out io.Writer, b bug.Interface, author bug.Person, add, remove []string) error { var added, removed []bug.Label if out == nil { diff --git a/bug/operations/set_status.go b/bug/operations/set_status.go index ed6c328c..bafcf5ee 100644 --- a/bug/operations/set_status.go +++ b/bug/operations/set_status.go @@ -27,13 +27,13 @@ func NewSetStatusOp(author bug.Person, status bug.Status) SetStatusOperation { } // Convenience function to apply the operation -func Open(b *bug.Bug, author bug.Person) { +func Open(b bug.Interface, author bug.Person) { op := NewSetStatusOp(author, bug.OpenStatus) b.Append(op) } // Convenience function to apply the operation -func Close(b *bug.Bug, author bug.Person) { +func Close(b bug.Interface, author bug.Person) { op := NewSetStatusOp(author, bug.ClosedStatus) b.Append(op) } diff --git a/bug/operations/set_title.go b/bug/operations/set_title.go index 49a270f7..5bd6260a 100644 --- a/bug/operations/set_title.go +++ b/bug/operations/set_title.go @@ -29,7 +29,7 @@ func NewSetTitleOp(author bug.Person, title string, was string) SetTitleOperatio } // Convenience function to apply the operation -func SetTitle(b *bug.Bug, author bug.Person, title string) { +func SetTitle(b bug.Interface, author bug.Person, title string) { it := bug.NewOperationIterator(b) var lastTitleOp bug.Operation |