lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.9.0 vs lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.9.1
- old
+ new
@@ -85,13 +85,13 @@
enterprise? ? ENV['ENTERPRISE_OCTOKIT_ACCESS_TOKEN'] : ENV['GITHUB_ACCESS_TOKEN']
end
private_class_method :github_access_token
def self.github_host
- # A format like git@github.com:masutaka/compare_linker.git
- return $1 if ENV['CIRCLE_REPOSITORY_URL'] =~ %r{([^@]+?):}
# A format like https://github.com/masutaka/circleci-bundle-update-pr.git
return $1 if ENV['CIRCLE_REPOSITORY_URL'] =~ %r{https://(.+?)/}
+ # A format like git@github.com:masutaka/compare_linker.git
+ return $1 if ENV['CIRCLE_REPOSITORY_URL'] =~ %r{([^@]+?):}
'github.com'
end
private_class_method :github_host
def self.raise_if_env_unvalid!