class Fastlane::InspectorReporter

Adds all the necessary emojis (obv)

Constants

NUMBER_OF_ISSUES_INLINE

Public Instance Methods

inspector_could_not_create_report(error, query, inspector) click to toggle source

Called when there have been networking issues in creating the report.

# File fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb, line 39
def inspector_could_not_create_report(error, query, inspector)
  puts("Could not access the GitHub API, you may have better luck via the website.")
  puts("https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/search?q=#{query}&type=Issues&utf8=✓")
  puts("Error: #{error.name}")
end
inspector_received_empty_report(report, inspector) click to toggle source

Called once the report has been received, but when there are no issues found.

# File fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb, line 32
def inspector_received_empty_report(report, inspector)
  puts("Found no similar issues. To create a new issue, please visit:")
  puts("https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new")
  puts("Run `fastlane env` to append the fastlane environment to your issue")
end
inspector_started_query(query, inspector) click to toggle source

Called just as the investigation has begun.

# File fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb, line 11
def inspector_started_query(query, inspector)
  puts("")
  puts("Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}...")
  puts("Search query: #{query}") if FastlaneCore::Globals.verbose?
  puts("")
end
inspector_successfully_received_report(report, inspector) click to toggle source

Called once the inspector has received a report with more than one issue.

# File fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb, line 19
def inspector_successfully_received_report(report, inspector)
  report.issues[0..(NUMBER_OF_ISSUES_INLINE - 1)].each { |issue| print_issue_full(issue) }

  if report.issues.count > NUMBER_OF_ISSUES_INLINE
    report.url.sub!('\'', '%27')
    puts("and #{report.total_results - NUMBER_OF_ISSUES_INLINE} more at: #{report.url}")
    puts("")
  end

  print_open_link_hint
end

Private Instance Methods

print_issue_full(issue) click to toggle source