Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace old GH importer with the parallel importergithub-importer-refactor | Yorick Peterse | 2017-11-07 | 23 | -947/+0 |
| | |||||
* | Merge branch 'remove-ensure-ref-fetched-from-controllers' into 'master' | Sean McGivern | 2017-11-06 | 1 | -1/+0 |
|\ | | | | | | | | | | | | | removed the #ensure_ref_fetched from all controllers Closes #36061 See merge request gitlab-org/gitlab-ce!15129 | ||||
| * | removed the #ensure_ref_fetched from all controllers | micael.bergeron | 2017-11-03 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | also, I refactored the MergeRequest#fetch_ref method to express the side-effect that this method has. MergeRequest#fetch_ref -> MergeRequest#fetch_ref! Repository#fetch_source_branch -> Repository#fetch_source_branch! | ||||
* | | Encapsulate git operations for mirroring in Gitlab::Git | Alejandro Rodríguez | 2017-11-03 | 1 | -1/+3 |
|/ | |||||
* | Use wiki.disk_path | Nick Thomas | 2017-10-18 | 1 | -1/+1 |
| | |||||
* | Move line code generation into Gitlab::Gitconflict-resolution-refactor | Alejandro Rodríguez | 2017-10-12 | 1 | -1/+1 |
| | | | | Having a distinct class just for that was a bit overkill | ||||
* | Create a Gitlab::Git submodule for conlict-related files | Alejandro Rodríguez | 2017-10-12 | 1 | -1/+1 |
| | | | | Rename classes to (hopefully) clearer names while we're doing that. | ||||
* | Move Gitlab::Diff::LineCode to module Gitlab::Git | Alejandro Rodríguez | 2017-10-12 | 1 | -1/+1 |
| | |||||
* | Minor improvements after latest review | Rémy Coutable | 2017-10-05 | 2 | -6/+2 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Improve & simplify GitHub's representation classes | Rémy Coutable | 2017-10-05 | 4 | -17/+15 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Set `label_ids` and `assignee_ids` after the initial `save!`. | Rémy Coutable | 2017-10-05 | 4 | -20/+42 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Fetch the remote if a PR has been created/updated after the last fetch | Rémy Coutable | 2017-10-05 | 1 | -4/+14 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Ensure Github::Import#execute returns false if any errors occured | Rémy Coutable | 2017-10-05 | 1 | -1/+1 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Set `ref_fetched` to `true` in Github::Import#fetch_pull_requests | Rémy Coutable | 2017-10-05 | 1 | -0/+1 |
| | | | | | | | Since we fetch all the refs we need at the beginning of the import process, we can safely set this attribute. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Don't even check if the branch exists locally as we only use its name in GH ↵ | Rémy Coutable | 2017-10-05 | 2 | -56/+4 |
| | | | | | | | | | | | | | import The benefit is that we don't even have to create temp source/target branches. Also, when the source branch of the imported MR is from a fork, name it "user:branch" to mimic how we display it for MR when forks actually exists. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Don't check for commit existence in Github::Representation::Branch#exists? | Rémy Coutable | 2017-10-05 | 2 | -9/+5 |
| | | | | | | | | We don't need to check if the existing branch contains a specific SHA since we only use the branch's name, the SHA is taken from the pull request raw `sha` data. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Keep only the changes that are known to work well | Rémy Coutable | 2017-10-05 | 2 | -23/+28 |
| | | | | | | | | | | | | Also, improved a bit the method names in Github::Representation::PullRequest. Last but not least, ensure temp branch names doesn't contain a `/` as this would create the ref in a subfolder in `refs/heads` (e.g. `refs/heads/gh-123/456/rymai/foo`), and would leave empty directories upon branch deletion (e.g. `refs/heads/gh-123/456/rymai/`. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Fetch and map refs/pull to refs/merge-requests in the GH import | James Lopez | 2017-10-05 | 2 | -28/+11 |
| | | | | update MR diff | ||||
* | Fix notes type created from import | Lin Jen-Shin (godfat) | 2017-09-29 | 5 | -37/+55 |
| | |||||
* | Add a spec for Github::Client and revert an `if !` to `unless`38198-fetch-github-api-per-100 | Rémy Coutable | 2017-09-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Retrieve PR comments only when we know there are any | Rémy Coutable | 2017-09-26 | 2 | -20/+24 |
| | | | | | | | | | | | | The Pull Request resource doesn't include the `comments` field, while the Issue resource does. And since we're looping through all issues anyway, we can freely check if the issue is a PR and has comments and in this case only fetch comments for it. That means if you have 1000 PRs but only 200 with comments, you will do 200 API requests instead of 1000. :notbad: Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Fetch 100 results when calling the GitHub API in Github::Import | Rémy Coutable | 2017-09-26 | 1 | -6/+6 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Migrate creating/deleting a branch to Gitalyfeature/migrate-branch-operations-to-gitaly | Ahmad Sherif | 2017-09-06 | 1 | -1/+1 |
| | |||||
* | Decrease ABC threshold to 55.25 | Maxim Rydkin | 2017-08-31 | 1 | -40/+42 |
| | |||||
* | Fix error when importing a GitHub-wiki repositorybvl-improve-bare-project-import | Bob Van Landuyt | 2017-08-23 | 1 | -1/+1 |
| | | | | | This would occur when Wiki's are enabled on GitHub, but there is no wiki repository | ||||
* | Change `project.path_with_namespace` to `project.disk_path` | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -1/+1 |
| | |||||
* | Allow users to disable SSL verification if not connecting to github.com | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -4/+15 |
| | |||||
* | Fix small typo on Github::Import#fetch_releases | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -1/+1 |
| | |||||
* | Import GitHub releases | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -0/+2 |
| | |||||
* | Fix Github::Import cache for user ids | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -1/+1 |
| | |||||
* | Extrac common timeout to a constant on Github::Client | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -2/+4 |
| | |||||
* | Fix small typoe on Github::Client#root_endpoint | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -1/+1 |
| | |||||
* | Expire content cache when repository fetch fails | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -2/+3 |
| | |||||
* | Set the GitHub API token on options hash | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -2/+2 |
| | |||||
* | Move GitHub root endpoint methods to Github::Client | Douglas Barbosa Alexandre | 2017-08-07 | 2 | -17/+19 |
| | |||||
* | Use a custom root endpoint if defined on GH ominiauth provider settings | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -1/+16 |
| | |||||
* | Use project.import_url to fetch repositories from Github | Douglas Barbosa Alexandre | 2017-08-07 | 1 | -9/+10 |
| | |||||
* | Rename many path_with_namespace -> full_path | Gabriel Mazetto | 2017-08-01 | 1 | -1/+1 |
| | |||||
* | Add a comment explaining how the branch clean up happens | Douglas Barbosa Alexandre | 2017-06-21 | 1 | -0/+6 |
| | |||||
* | Fix Github::Representation::PullRequest#source_branch_exists? | Douglas Barbosa Alexandre | 2017-06-21 | 1 | -1/+1 |
| | |||||
* | Fix GitHub importer performance on branch existence check | Douglas Barbosa Alexandre | 2017-06-21 | 3 | -35/+57 |
| | |||||
* | Github - Fix token interpolation when cloning wiki repository | Douglas Barbosa Alexandre | 2017-06-12 | 1 | -1/+1 |
| | |||||
* | Reset create callbacks for Issues/MRs while importing GitHub projects | Douglas Barbosa Alexandre | 2017-05-11 | 1 | -0/+2 |
| | |||||
* | Fix token interpolation when setting the Github remote | Douglas Barbosa Alexandre | 2017-05-11 | 1 | -1/+2 |
| | |||||
* | [Multiple issue assignee] Fix a number of specs | Valery Sizov | 2017-05-05 | 1 | -1/+1 |
| | |||||
* | Fix a failing Rubocop rule on master | Douglas Barbosa Alexandre | 2017-04-26 | 1 | -17/+21 |
| | |||||
* | Add basic progress output to GitHub import | Douglas Barbosa Alexandre | 2017-04-25 | 1 | -1/+10 |
| | |||||
* | Fix Rubocop offenses | Douglas Barbosa Alexandre | 2017-04-25 | 1 | -2/+6 |
| | |||||
* | Fix import of notes on Pull Request diff | Douglas Barbosa Alexandre | 2017-04-25 | 3 | -9/+12 |
| | |||||
* | Create project repository only when it not exists | Douglas Barbosa Alexandre | 2017-04-25 | 1 | -1/+1 |
| |