summaryrefslogtreecommitdiff
path: root/lib/github/representation
Commit message (Collapse)AuthorAgeFilesLines
* Replace old GH importer with the parallel importergithub-importer-refactorYorick Peterse2017-11-0711-338/+0
|
* Move line code generation into Gitlab::Gitconflict-resolution-refactorAlejandro Rodríguez2017-10-121-1/+1
| | | | Having a distinct class just for that was a bit overkill
* Create a Gitlab::Git submodule for conlict-related filesAlejandro Rodríguez2017-10-121-1/+1
| | | | Rename classes to (hopefully) clearer names while we're doing that.
* Move Gitlab::Diff::LineCode to module Gitlab::GitAlejandro Rodríguez2017-10-121-1/+1
|
* Minor improvements after latest reviewRémy Coutable2017-10-052-6/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Improve & simplify GitHub's representation classesRémy Coutable2017-10-053-15/+13
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Set `label_ids` and `assignee_ids` after the initial `save!`.Rémy Coutable2017-10-053-14/+30
| | | | 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 Coutable2017-10-051-52/+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 Coutable2017-10-052-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 wellRémy Coutable2017-10-051-22/+24
| | | | | | | | | | | | 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 importJames Lopez2017-10-051-24/+9
| | | | update MR diff
* Migrate creating/deleting a branch to Gitalyfeature/migrate-branch-operations-to-gitalyAhmad Sherif2017-09-061-1/+1
|
* Add a comment explaining how the branch clean up happensDouglas Barbosa Alexandre2017-06-211-0/+6
|
* Fix Github::Representation::PullRequest#source_branch_exists?Douglas Barbosa Alexandre2017-06-211-1/+1
|
* Fix GitHub importer performance on branch existence checkDouglas Barbosa Alexandre2017-06-212-7/+55
|
* Fix import of notes on Pull Request diffDouglas Barbosa Alexandre2017-04-251-4/+0
|
* Use the base initiliazer for representationsDouglas Barbosa Alexandre2017-04-242-13/+10
|
* Add Github::Representation::Base#idDouglas Barbosa Alexandre2017-04-243-7/+4
|
* Import Github releasesDouglas Barbosa Alexandre2017-04-241-0/+17
|
* Pass a options hash to Github::ClientDouglas Barbosa Alexandre2017-04-245-9/+11
|
* Extract Github::Representation::IssuableDouglas Barbosa Alexandre2017-04-243-66/+39
|
* Extract common attributes to Github::Representation::BaseDouglas Barbosa Alexandre2017-04-246-52/+12
|
* Apply labels to issues/merge requestsDouglas Barbosa Alexandre2017-04-241-0/+8
|
* Import issues commentsDouglas Barbosa Alexandre2017-04-241-0/+4
|
* Fix comment representationDouglas Barbosa Alexandre2017-04-241-2/+2
|
* Add comment representationDouglas Barbosa Alexandre2017-04-241-0/+58
|
* Add issue representationDouglas Barbosa Alexandre2017-04-241-0/+57
|
* Add basic representations for the Github API resultsDouglas Barbosa Alexandre2017-04-247-0/+270