lib/travis/cli/repo_command.rb in travis-1.13.3 vs lib/travis/cli/repo_command.rb in travis-1.14.0

- old
+ new

@@ -5,11 +5,11 @@ module Travis module CLI class RepoCommand < ApiCommand GIT_REGEX = %r{/?(.*/.+?)(\.git)?$} - TRAVIS = %r{^https://(staging-)?api\.travis-ci\.(org|com)} + TRAVIS = %r{^https://(staging-)?api\.travis-ci\.com} on('-g', '--github-token TOKEN', 'identify by GitHub token') on('-r', '--repo SLUG', 'repository to use (will try to detect from current git clone)') do |c, slug| c.slug = slug c.error 'SLUG should be of the form OWNER/REPO' unless slug.split('/').compact.size == 2 end @@ -131,10 +131,10 @@ repo_config['endpoint'] ||= config['default_endpoint'] else repo_config['endpoint'] ||= begin load_gh GH.head("/repos/#{slug}") - Travis::Client::ORG_URI + Travis::Client::COM_URI rescue GH::Error Travis::Client::COM_URI end end end