summaryrefslogtreecommitdiff
path: root/lib/github/representation/pull_request.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace old GH importer with the parallel importergithub-importer-refactorYorick Peterse2017-11-071-71/+0
|
* Improve & simplify GitHub's representation classesRémy Coutable2017-10-051-6/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Set `label_ids` and `assignee_ids` after the initial `save!`.Rémy Coutable2017-10-051-0/+10
| | | | 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-051-0/+2
| | | | | | | | 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
* 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-211-6/+42
|
* Use the base initiliazer for representationsDouglas Barbosa Alexandre2017-04-241-8/+6
|
* Pass a options hash to Github::ClientDouglas Barbosa Alexandre2017-04-241-2/+3
|
* Extract Github::Representation::IssuableDouglas Barbosa Alexandre2017-04-241-33/+1
|
* Extract common attributes to Github::Representation::BaseDouglas Barbosa Alexandre2017-04-241-12/+0
|
* Add basic representations for the Github API resultsDouglas Barbosa Alexandre2017-04-241-0/+123