Commit f517dd26 authored by Ben Bodenmiller's avatar Ben Bodenmiller

fix stuck mr

fixes #348. related to 64874193.
parent 4ab717ea
No related merge requests found
...@@ -73,6 +73,7 @@ v 7.10.0 (unreleased) ...@@ -73,6 +73,7 @@ v 7.10.0 (unreleased)
- Fix git over ssh errors 'fatal: protocol error: bad line length character' - Fix git over ssh errors 'fatal: protocol error: bad line length character'
- Automatically setup GitLab CI project for forks if origin project has GitLab CI enabled - Automatically setup GitLab CI project for forks if origin project has GitLab CI enabled
- Bust group page project list cache when namespace name or path changes. - Bust group page project list cache when namespace name or path changes.
- Fix stuck Merge Request merging events from old installations (Ben Bodenmiller)
v 7.9.3 v 7.9.3
- Contains no changes - Contains no changes
......
...@@ -361,6 +361,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -361,6 +361,8 @@ class MergeRequest < ActiveRecord::Base
end end
def locked_long_ago? def locked_long_ago?
locked_at && locked_at < (Time.now - 1.day) return false unless locked?
locked_at.nil? || locked_at < (Time.now - 1.day)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment