aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
diff options
context:
space:
mode:
authorJason Karns2017-06-12 17:30:02 -0400
committerJason Karns2017-06-19 09:42:59 -0400
commitc2899b65591c2a966ccfa87f0cdd47dac8fd0781 (patch)
treec8a49c2ebc898a59e45a25b8d36636352e612349 /Library/Homebrew/utils/github.rb
parentaa364fbf155ba4c795ebef51abee1212801c4771 (diff)
downloadbrew-c2899b65591c2a966ccfa87f0cdd47dac8fd0781.tar.bz2
Tap learns to form its own full_name
full_name is formed from `{user}/homebrew-{repo}` and is always lowercase.
Diffstat (limited to 'Library/Homebrew/utils/github.rb')
-rw-r--r--Library/Homebrew/utils/github.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index 5ba381529..1a781cee6 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -291,8 +291,8 @@ module GitHub
prs.each { |i| puts "#{i["title"]} (#{i["html_url"]})" }
end
- def private_repo?(user, repo)
- uri = URI.parse("#{API_URL}/repos/#{user}/#{repo}")
+ def private_repo?(full_name)
+ uri = URI.parse("#{API_URL}/repos/#{full_name}")
open(uri) { |json| json["private"] }
end
end