updated to use V3 API

This commit is contained in:
Kohsuke Kawaguchi
2012-02-12 08:11:15 -08:00
parent dac2a56671
commit e8ff7a4ae8
5 changed files with 20 additions and 81 deletions

View File

@@ -93,12 +93,18 @@ public class GHPullRequest extends GHIssue {
return GitHub.parseDate(closed_at);
}
void wrapUp(GitHub root) {
GHPullRequest wrapUp(GHRepository owner) {
this.owner = owner;
return wrapUp(owner.root);
}
GHPullRequest wrapUp(GitHub root) {
this.root = root;
if (owner!=null) owner.wrap(root);
if (issue_user!=null) issue_user.root=root;
if (user!=null) user.root=root;
if (base!=null) base.wrapUp(root);
if (head!=null) head.wrapUp(root);
return this;
}
}