Commit 68fa16a5 authored by Lin Jen-Shin's avatar Lin Jen-Shin

issues_for_nodes => issuables_for_nodes

parent 9f7c29ba
...@@ -28,13 +28,13 @@ module Banzai ...@@ -28,13 +28,13 @@ module Banzai
issue_parser = Banzai::ReferenceParser::IssueParser.new(project, user) issue_parser = Banzai::ReferenceParser::IssueParser.new(project, user)
merge_request_parser = Banzai::ReferenceParser::MergeRequestParser.new(project, user) merge_request_parser = Banzai::ReferenceParser::MergeRequestParser.new(project, user)
issues_for_nodes = issue_parser.issues_for_nodes(nodes).merge( issuables_for_nodes = issue_parser.issues_for_nodes(nodes).merge(
merge_request_parser.merge_requests_for_nodes(nodes) merge_request_parser.merge_requests_for_nodes(nodes)
) )
# The project for the issue might be pending for deletion! # The project for the issue/MR might be pending for deletion!
# Filter them out because we don't care about them. # Filter them out because we don't care about them.
issues_for_nodes.select { |node, issuable| issuable.project } issuables_for_nodes.select { |node, issuable| issuable.project }
end end
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