Skip to content
Snippets Groups Projects

Integrate listing of existing custom headers into custom headers form for streaming audit events

All threads resolved!
2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -36,8 +36,10 @@ def branches_with_merge_request_for(issue)
@@ -36,8 +36,10 @@ def branches_with_merge_request_for(issue)
end
end
def branches_with_iid_of(issue)
def branches_with_iid_of(issue)
project.repository.branch_names.select do |branch|
branch_name_regex = /\A#{issue.iid}-(?!\d+-stable)/i
branch =~ /\A#{issue.iid}-(?!\d+-stable)/i
 
project.repository.search_branch_names("#{issue.iid}-*").select do |branch|
 
branch.match?(branch_name_regex)
end
end
end
end
end
end
Loading