| | |
| | | import com.gitblit.models.TicketModel.Patchset; |
| | | import com.gitblit.models.TicketModel.Status; |
| | | import com.gitblit.models.TicketModel.Type; |
| | | import com.gitblit.models.TicketModel.Priority; |
| | | import com.gitblit.models.TicketModel.Severity; |
| | | import com.gitblit.utils.StringUtils; |
| | | |
| | | /** |
| | |
| | | public int commentsCount; |
| | | public int votesCount; |
| | | public int approvalsCount; |
| | | public Priority priority; |
| | | public Severity severity; |
| | | |
| | | public int docId; |
| | | public int totalResults; |
| | |
| | | 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); |
| | | } |