aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/set_title.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operations/set_title.go')
-rw-r--r--bug/operations/set_title.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bug/operations/set_title.go b/bug/operations/set_title.go
index ef934db1..295db282 100644
--- a/bug/operations/set_title.go
+++ b/bug/operations/set_title.go
@@ -25,3 +25,8 @@ func (op SetTitleOperation) Apply(snapshot bug.Snapshot) bug.Snapshot {
return snapshot
}
+
+func SetTitle(b *bug.Bug, author bug.Person, title string) {
+ setTitleOp := NewSetTitleOp(author, title)
+ b.Append(setTitleOp)
+}