aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/bug.go')
-rw-r--r--bug/bug.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bug/bug.go b/bug/bug.go
index 24f0dcd5..04bd5996 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -242,6 +242,11 @@ func readBug(repo repository.ClockedRepo, ref string) (*Bug, error) {
return &bug, nil
}
+func RemoveLocalBug(repo repository.ClockedRepo, id entity.Id) error {
+ ref := bugsRefPattern + id.String()
+ return repo.RemoveRef(ref)
+}
+
type StreamedBug struct {
Bug *Bug
Err error