From b2ef5a6b0f5d5f78b334296aa9dfdde7571083e6 Mon Sep 17 00:00:00 2001
From: Kyle Gottfried <kgottfried@eotech.com>
Date: Tue, 01 Jul 2014 09:25:23 -0400
Subject: [PATCH] Refine web.canonicalUrl documentation
---
src/main/java/com/gitblit/tickets/QueryResult.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gitblit/tickets/QueryResult.java b/src/main/java/com/gitblit/tickets/QueryResult.java
index 9f5d3a5..7a2b1ab 100644
--- a/src/main/java/com/gitblit/tickets/QueryResult.java
+++ b/src/main/java/com/gitblit/tickets/QueryResult.java
@@ -74,6 +74,14 @@
return type != null && Type.Proposal == type;
}
+ public boolean isOpen() {
+ return !status.isClosed();
+ }
+
+ public boolean isClosed() {
+ return status.isClosed();
+ }
+
public boolean isMerged() {
return Status.Merged == status && !StringUtils.isEmpty(mergeSha);
}
--
Gitblit v1.9.1