Commit graph

17 commits

Author SHA1 Message Date
Ahmad Sherif
f68d9261b0 Fix typos 2016-10-28 11:30:20 +02:00
Ahmad Sherif
4259334fb6 Fix applying labels for GitHub-imported MRs 2016-10-27 15:42:28 +02:00
Ahmad Sherif
333c02a8c8 Fix broken handling of certain calls in GitHub importer client
Closes #22998
2016-10-06 11:14:25 +02:00
Ahmad Sherif
395a9301b2 Process each page of GitHub resources instead of concating them then processing
This should avoid having large memory growth when importing GitHub repos
with lots of resources.
2016-09-27 20:45:07 +02:00
Douglas Barbosa Alexandre
78a5de99e9 Memoize response from has_rate_limit? to avoid extra API call 2016-07-12 12:14:17 -03:00
Douglas Barbosa Alexandre
be9262dd95 Checks if rate limit is enabled instead of stubbing response 2016-07-12 12:14:17 -03:00
Douglas Barbosa Alexandre
38a58978aa Fix GItHub client requests when rate limit is disabled 2016-07-12 12:14:17 -03:00
Eric K Idema
12aa1f898d Import from Github using Personal Access Tokens.
This stands as an alternative to using OAuth to access a user's Github
repositories.  This is setup in such a way that it can be used without OAuth
configuration.

From a UI perspective, the how to import modal has been replaced by a full
page, which includes a form for posting a personal access token back to the
Import::GithubController.

If the user has logged in via GitHub, skip the Personal Access Token and go
directly to Github for an access token via OAuth.
2016-06-30 18:48:17 +02:00
Douglas Barbosa Alexandre
cef3fd2899 Wrap all rate limiting logic inside GitHub API client 2016-06-09 12:43:06 -03:00
Stan Hu
eede032345 Backport GitHub Enterprise import support from EE
These changes were pulled from GitLab EE to support configuring
an alternative API URL than the default https://api.github.com.
In addition, the `verify_ssl` flag allows users to disable SSL cert
checking.

One modification: add a default `args` option if it does not exist
to avoid breaking existing configurations.
2016-04-26 21:00:55 -07:00
Valery Sizov
e92ceb7b57 fix specs 2015-11-30 16:12:31 +02:00
Stan Hu
5cce0645b0 Fix OAuth2 issue importing a new project from GitHub and GitLab
Closes #1268
2015-03-22 18:16:48 -07:00
Douwe Maan
2718955441 Fix import pages not working after first load. 2015-03-13 13:47:26 +01:00
Douwe Maan
ad6d623234 Add Bitbucket importer. 2015-02-24 15:07:24 +01:00
Valery Sizov
b3c90dd514 GitHub importer refactoring 2015-02-05 21:48:21 -08:00
Valery Sizov
33349dd549 GitLab.com integration: refactoring 2015-02-05 12:50:34 -08:00
Valery Sizov
18231b0bb3 GitLab.com integration: refactoring 2015-02-05 12:50:34 -08:00
Renamed from lib/gitlab/github/client.rb (Browse further)