diff --git a/lib/github/import.rb b/lib/github/import.rb index ef0ef9adc7a..fddd52af260 100644 --- a/lib/github/import.rb +++ b/lib/github/import.rb @@ -324,8 +324,8 @@ module Github remove_branch(pull_request.target_branch_name) unless pull_request.target_branch_exists? end - def label_ids(issuable) - issuable.map { |attrs| cached[:label_ids][attrs.fetch('name')] }.compact + def label_ids(labels) + labels.map { |attrs| cached[:label_ids][attrs.fetch('name')] }.compact end def milestone_id(milestone)