summaryrefslogtreecommitdiffstats
path: root/models/actions/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/actions/status.go')
-rw-r--r--models/actions/status.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/actions/status.go b/models/actions/status.go
index 059cf9bc09..c97578f2ac 100644
--- a/models/actions/status.go
+++ b/models/actions/status.go
@@ -82,6 +82,10 @@ func (s Status) IsRunning() bool {
return s == StatusRunning
}
+func (s Status) IsBlocked() bool {
+ return s == StatusBlocked
+}
+
// In returns whether s is one of the given statuses
func (s Status) In(statuses ...Status) bool {
for _, v := range statuses {