106 Commits (8850e571de1704b521eae638df4ee1c8fd76bc8b)

Author SHA1 Message Date
Jordi Boggiano c4f19e51d8
Rework the funding info parsing to avoid requiring graphql permissions 4 years ago
Jordi Boggiano 4f59162827
Fix class name of caught exception 4 years ago
Jordi Boggiano 8dc055bec7
Fix 5.3 syntax 4 years ago
Jordi Boggiano f171d1fd89
Avoid requiring auth for the funding API access 4 years ago
Jordi Boggiano b033a2ae81
Retrieve funding info from github into composer.json if not declared there 4 years ago
Stephan Vock 731d94a2a3 VcsRepositories: mark archived repositories as abandoned 5 years ago
Jordi Boggiano 9e2485aa4d
Make gitlab/bitbucket driver checks case insensitive 5 years ago
Grey Baker b09945c3ba Allow for leading slash in path part of GitHub URLs 5 years ago
Jordi Boggiano 0261ce8092
Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173 5 years ago
Jordi Boggiano d3873a0565
Merge branch '1.8' 5 years ago
Jordi Boggiano 61cd8664e5
Avoid creating empty bitbucket files if there was no composer.json present in the original branch/tag 5 years ago
Kath Young fbb9d20c33 Adjusted config name to be more descriptive, added documentation 6 years ago
Kath Young 3d1e0e79cc Allow for no-api for Github to be a composer configuration as well as repo specific 6 years ago
Jordi Boggiano 734735c691
Merge pull request #7574 from seferov/patch-1
Remove github API request retries as it is not needed anymore
6 years ago
Pierre du Plessis 33341130a9
Fix typo in variable name in GitHubDriver 6 years ago
Farhad Safarov 4014c914ab remove Github 404 retries 6 years ago
Jordi Boggiano e718f34ba4 Properly detect rate limit errors on github before outputting messages, fixes #6621 6 years ago
Jordi Boggiano 1933532ec5 Fix github authentication request, fixes #5767 7 years ago
Jordi Boggiano 97d09a9b77 Make github driver code more robust 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano f200343cf2 Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver 7 years ago
Pete Akins 95e9ad57d4 Don’t add github specials if there is no composer data
This can happen if an identifier doesn’t have a composer.json file (but other identifiers do)
8 years ago
Thomas Flori 7896b1ffab cache only rendered composer information
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori 597f834ae9 add getFileContent function
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.

By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano 1c4acf3583 Refactor code to use RemoteFilesystem facilities for header parsing, refs #5435 8 years ago
Phil Lello 7a112b0395 Check headers for missing scopes before asking for new OAuth token
This patch stops the GitHub VCS driver prompting for a new access
token when a repository is deleted/hidden.

Specifically, it checks the X-OAuth-Scopes and X-Accepted-OAuth-Scopes
response headers to see if the scopes on the current request match
those needed by the API call. If they do, the 404 means that the repo
is deleted/hidden, and there's no point asking for a new OAuth token.
8 years ago
Jordi Boggiano 8bfb2e8bc2 Add a getter to fetch the repo data from the outside of the github driver 8 years ago
Jordi Boggiano 4c50136522 Avoid caching nulls, refs #5234 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano 29312be4df Strict typing fixes 9 years ago
Jordi Boggiano afd98b74f1 Fix handling of www.github.com in GitHubDriver, fixes composer/packagist#572 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 2b7b605839 Skip empty time values 10 years ago
Jordi Boggiano d5294ef91b Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423 10 years ago
Jordi Boggiano b7402c3b2d Ignore gh-pages branches, fixes #3073 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano eebffacd9f Use pagination to get tags/branches from the github API 10 years ago
Nils Adermann b808ff5e28 Don't hardcode the URL to an https one either 11 years ago
Nils Adermann edfaf727e5 When using the github driver with no-api don't reset to an ssh url 11 years ago
Jordi Boggiano a612b2affe Merge remote-tracking branch 'naderman/download-failover' 11 years ago
Nils Adermann a80fde97d5 Make the github driver behave like git if "no-api" is specified. 11 years ago
Nils Adermann 35fbe3fd42 Download failover means we can now always try github zip urls for dist 11 years ago
Kim Laï Trinh 691f784f92 fix bug introduced in https://github.com/composer/composer/pull/2375 11 years ago
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 11 years ago
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 11 years ago
Gennady Feldman d8dbcab710 Refactoring my code to use a protected function to generate API Url. 11 years ago
Gennady Feldman e78499d28d First working version of GitHub Enterprise API. 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 11 years ago
Jordi Boggiano 1a50f74c4c Improve reporting of github rate limiting errors, fixes #2183 11 years ago