global

def repo_name_by_id(id)

def repo_name_by_id(id)
  raise 'The ID of the repo is nil' if id.nil?
  raise 'The ID of the repo must be an Integer' unless id.is_a?(Integer)
  json = @origin.repository(id)
  name = json[:full_name].downcase
  @loog.debug("GitHub repository ##{id} has a name: #{name}")
  name
end