aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
AgeCommit message (Collapse)Author
2017-08-20Move fix from #3070 inside `GitHub` module.Markus Reiter
2017-08-17Change var nameBen Muschol
2017-08-14Unify vocabulary in github module, remove unnecessary logicBen Muschol
Fix duplication bug
2017-08-14Spec for issues searchBen Muschol
2017-08-14Implement PR feedbackBen Muschol
2017-08-13fix typoBen Muschol
2017-08-13Fix syntax errorBen Muschol
2017-08-13Rename path_to -> url_to since it returns a urlBen Muschol
2017-08-13Remove duplicate url generation logic in Github moduleBen Muschol
2017-08-08Simplify CurlDownloadStrategy.Markus Reiter
2017-08-07Revert "Refactor SVN and cURL download strategies."ilovezfs
2017-08-07Simplify CurlDownloadStrategy.Markus Reiter
2017-06-19Tap learns to form its own full_nameJason Karns
full_name is formed from `{user}/homebrew-{repo}` and is always lowercase.
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-04-25Remove unnecessary block.Markus Reiter
2017-04-25Add `GitHub::search_code` method.Markus Reiter
2017-03-23github: don't print when searching PRs.Mike McQuaid
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-10-30Improve GitHub API scopes output.Mike McQuaid
Improve the GitHub API scope and token related messaging by autopopulating the scopes we need on the new scopes page and, in the case of a lacking a scope we need, output what scope was required. Also, DRY up the personal access token code.
2016-10-01Use Formatter for all URLs.Markus Reiter
2016-10-01Add `Formatter` module.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-09-23Fix Style/ModuleFunction.Markus Reiter
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11utils/github: fix Rubocop warnings.Mike McQuaid
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-27utils/github: fix reverted order of credentialsMartin Afanasjew
We always return the token/password first and, if applicable, the user name is the second element in the returned array. Closes #581. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-27utils/github: fix broken pipe errorMartin Afanasjew
Closes #573.
2016-07-12github: produce better curl error messages. (#441)Mike McQuaid
* global: add RUBY_TWO global variable. * test-bot: use RUBY_TWO global variable. * github: produce better curl error messages. If we don't know why curl has failed then ensure that the error messages that it produced are included as part of the user output.
2016-07-03gist-logs: close temp file before passing to curl (#418)Andrew Janke
Ensures that the data gets written to disk so curl can see it, avoiding intermittent JSON parsing errors in gist creation.
2016-06-03Use `curl` for the GitHub API (#295)Mike McQuaid
* Move GitHub API module to utils/github.rb. * Move curl method to utils/curl.rb. * global: use long curl arguments and an array. This makes the code more self-documenting. * utils/curl: support reading curl's output. * utils/github: use curl instead of open-uri. It has far better proxy support. * pull: set Homebrew user agent. * gist-logs: remove trailing whitespace. * gist-logs: use first instead of [0]. Easier to read. * gist-logs: use curl-based GitHub.open method.