summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-26 13:11:49 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-26 13:11:49 +0800
commit68fa16a57c17734d08d978556ca4fe79668bdb24 (patch)
tree6aa1b78571fb7857370d50f0aed73f11c6c38c91 /lib/banzai
parent9f7c29baef8941dc4c3b4539b4542f834b41c298 (diff)
downloadgitlab-ce-68fa16a57c17734d08d978556ca4fe79668bdb24.tar.gz
issues_for_nodes => issuables_for_nodes31280-skip-issueables-without-project
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/issuable_extractor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/banzai/issuable_extractor.rb b/lib/banzai/issuable_extractor.rb
index 5b4974470b6..cbabf9156de 100644
--- a/lib/banzai/issuable_extractor.rb
+++ b/lib/banzai/issuable_extractor.rb
@@ -28,13 +28,13 @@ module Banzai
issue_parser = Banzai::ReferenceParser::IssueParser.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)
)
- # 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.
- issues_for_nodes.select { |node, issuable| issuable.project }
+ issuables_for_nodes.select { |node, issuable| issuable.project }
end
end
end