model: add outdated property to changeset comment to check if
comment is outdated
This commit is contained in:
parent
09462ffeae
commit
cbd60560be
1 changed files with 4 additions and 0 deletions
|
|
@ -2929,6 +2929,10 @@ class ChangesetComment(Base, BaseModel):
|
|||
q = q.filter(cls.pull_request_id == pull_request_id)
|
||||
return q.all()
|
||||
|
||||
@property
|
||||
def outdated(self):
|
||||
return self.display_state == self.COMMENT_OUTDATED
|
||||
|
||||
def render(self, mentions=False):
|
||||
from rhodecode.lib import helpers as h
|
||||
return h.render(self.text, renderer=self.renderer, mentions=mentions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue