lib/jira_sync/plugin.rb in danger-jira_sync-0.0.4 vs lib/jira_sync/plugin.rb in danger-jira_sync-0.0.5
- old
+ new
@@ -90,10 +90,10 @@
def issue_number
@issue_number ||= github.pr_json["number"]
end
def github_labels
- @github_labels ||= github.api.labels(repo)
+ @github_labels ||= github.api.labels(repo).map { |github_label| github_label[:name] }
rescue Octokit::Error => e
warn "#{e.response_status} Error while retrieving GitHub labels: #{e.message}"
end
def extract_issue_keys_from_pull_request(key_prefixes)