Fix merge request closed filter. Fixed one more test
This commit is contained in:
parent
be817c53c6
commit
4a137651ec
2 changed files with 7 additions and 1 deletions
|
@ -66,6 +66,10 @@ class MergeRequest < ActiveRecord::Base
|
|||
|
||||
scope :merged, -> { with_state(:merged) }
|
||||
|
||||
# Closed scope for merge request should return
|
||||
# both merged and closed mr's
|
||||
scope :closed, -> { with_states(:closed, :merged) }
|
||||
|
||||
class << self
|
||||
def find_all_by_branch(branch_name)
|
||||
where("source_branch LIKE :branch OR target_branch LIKE :branch", branch: branch_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue