diff options
Diffstat (limited to 'bug/status.go')
-rw-r--r-- | bug/status.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bug/status.go b/bug/status.go index b1b066ff..0eee6cf1 100644 --- a/bug/status.go +++ b/bug/status.go @@ -18,3 +18,14 @@ func (s Status) String() string { return "unknown status" } } + +func (s Status) Action() string { + switch s { + case OpenStatus: + return "opened" + case ClosedStatus: + return "closed" + default: + return "unknown status" + } +} |