Commit Graph

48 Commits

Author SHA1 Message Date
Douglas Barbosa Alexandre 1d0a0b9ae7 Fix a failing Rubocop rule on master 2017-04-26 14:35:34 -03:00
Douglas Barbosa Alexandre d082b78998 Add basic progress output to GitHub import 2017-04-25 23:47:49 -03:00
Douglas Barbosa Alexandre 70d15ae1d9 Fix Rubocop offenses 2017-04-25 17:08:32 -03:00
Douglas Barbosa Alexandre 44954c507e Fix import of notes on Pull Request diff 2017-04-25 17:05:40 -03:00
Douglas Barbosa Alexandre 39ab842bc2 Create project repository only when it not exists 2017-04-25 15:58:17 -03:00
Douglas Barbosa Alexandre 000a723d84 Fix small typo on GitHub::Import 2017-04-25 15:57:50 -03:00
Douglas Barbosa Alexandre 2f934ce22f Remove the Github::Error base class 2017-04-25 13:30:30 -03:00
Douglas Barbosa Alexandre 7df974c433 Add blank line before the raise method on Github::Collection 2017-04-25 13:30:08 -03:00
Douglas Barbosa Alexandre aeb1684c52 Fix small typo 2017-04-24 23:41:46 -03:00
Douglas Barbosa Alexandre dd1157c80b Use Class.new(SuperClass) to define an empty custom error class 2017-04-24 23:41:36 -03:00
Douglas Barbosa Alexandre 30794972f4 Set timeout options to the Github::Client 2017-04-24 21:21:58 -03:00
Douglas Barbosa Alexandre 5d106f2597 Use the base initiliazer for representations 2017-04-24 21:13:51 -03:00
Douglas Barbosa Alexandre 05255631ae Cache labels at the same time we fetch them from the GH API 2017-04-24 21:03:42 -03:00
Douglas Barbosa Alexandre 22a33d8256 Avoid unnecessary use of Arel to find users by external uid 2017-04-24 20:45:51 -03:00
Douglas Barbosa Alexandre 5c72ba0ff1 Finish the import process if some error occurs when fetching the repo 2017-04-24 20:28:06 -03:00
Douglas Barbosa Alexandre 1f498b73da Use only one cache hash with with a hash initializer by default 2017-04-24 20:00:11 -03:00
Douglas Barbosa Alexandre 275f00ee88 Refactoring Github::RateLimit 2017-04-24 19:49:17 -03:00
Douglas Barbosa Alexandre f73a0280c9 Extract rate limit URL to a constant 2017-04-24 19:28:08 -03:00
Douglas Barbosa Alexandre c7935dcfae Does not freeze integer values 2017-04-24 19:26:07 -03:00
Douglas Barbosa Alexandre 9bdde5796a Add Github::Representation::Base#id 2017-04-24 19:04:39 -03:00
Douglas Barbosa Alexandre 2b7328c317 Rename find_by_email/find_by_external_uid methods 2017-04-24 18:42:50 -03:00
Douglas Barbosa Alexandre e50606cd2d Refactor rake task to to import GitHub repositores 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 09a6d32817 Keep track of import errors 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre bd9e5c5ddf Clone GitHub wiki 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 3c0a713a37 Import Github releases 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 3aa8979556 Refactoring Github import 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre a7cb336e55 Use while instead of loop/break 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 181445307c Add a method to format issues/pull requests/comments body 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 5691c9b061 Does not remove the GitHub remote 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 782aab1319 Pass a options hash to Github::Client 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre ac1634fac9 Extract a method to import issues/pull requests comments 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 00e3d60c3d Extract Github::Representation::Issuable 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre f35573f12e Extract common attributes to Github::Representation::Base 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre a32adb82dc Remove sensitive information 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 33c8f315b9 Apply labels to issues/merge requests 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre db3220092a Import issues comments 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre c26076664f Import pull requests comments 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre eb95f0e5b2 Fix comment representation 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 00912ed963 Refactoring Github response 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 4a3b895d91 Refactoring Github import to avoid memory leak 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 104144f373 Refactoring client to not parse response body automatically 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 8538066e00 Refactoring collection wrapper 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 2c92cc52d7 Add comment representation 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 0b1d1931fb Add issue representation 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 0a52ae8380 Remove unused GitHub endpoint wrappers 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre f76363e445 Add basic importer for GitHub repositories 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre b43ecca906 Add basic representations for the Github API results 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre fc42f3dffa Add basic client for the GitHub API 2017-04-24 16:17:52 -03:00