diff options
author | Kevin Sawicki | 2011-08-16 19:33:19 +0000 |
---|---|---|
committer | Kevin Sawicki | 2011-08-16 19:33:19 +0000 |
commit | 488cda22f47a5f1a084b3dd8ff3befeaf7fe3de4 (patch) | |
tree | 723e426ff16f8ba9184c5ef14d2a6d9598edeb79 /org.eclipse.mylyn.github.ui/src/org | |
parent | 3ae11486485c96a2740dd9ed2ff75be5484776a4 (diff) | |
download | egit-github-488cda22f47a5f1a084b3dd8ff3befeaf7fe3de4.tar.gz egit-github-488cda22f47a5f1a084b3dd8ff3befeaf7fe3de4.tar.xz egit-github-488cda22f47a5f1a084b3dd8ff3befeaf7fe3de4.zip |
Add service support for repository commits API.
Supports fetching commits and adding, editing, deleting,
and fetching commit comments.
Change-Id: Ife800440c07ee9c9a46c2037fdef777e2dd6e734
Signed-off-by: Kevin Sawicki <kevin@github.com>
Diffstat (limited to 'org.eclipse.mylyn.github.ui/src/org')
2 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java index 276bdfe3..6c379793 100644 --- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java +++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java @@ -13,7 +13,7 @@ package org.eclipse.mylyn.internal.github.ui.pr; import java.util.ArrayList; import java.util.List; -import org.eclipse.egit.github.core.PullRequestCommit; +import org.eclipse.egit.github.core.RepositoryCommit; import org.eclipse.mylyn.internal.github.core.pr.PullRequestComposite; import org.eclipse.ui.model.WorkbenchAdapter; @@ -31,9 +31,9 @@ public class PullRequestAdapter extends WorkbenchAdapter { */ public PullRequestAdapter(PullRequestComposite request) { List<PullRequestCommitAdapter> prCommits = new ArrayList<PullRequestCommitAdapter>(); - List<PullRequestCommit> requestCommits = request.getCommits(); + List<RepositoryCommit> requestCommits = request.getCommits(); if (requestCommits != null) - for (PullRequestCommit commit : requestCommits) + for (RepositoryCommit commit : requestCommits) prCommits.add(new PullRequestCommitAdapter(commit)); commits = prCommits.toArray(new PullRequestCommitAdapter[prCommits .size()]); diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestCommitAdapter.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestCommitAdapter.java index 26e71123..ded701ca 100644 --- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestCommitAdapter.java +++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestCommitAdapter.java @@ -13,7 +13,7 @@ package org.eclipse.mylyn.internal.github.ui.pr; import java.text.DateFormat; import java.text.MessageFormat; -import org.eclipse.egit.github.core.PullRequestCommit; +import org.eclipse.egit.github.core.RepositoryCommit; import org.eclipse.egit.ui.UIIcons; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.StyledString; @@ -27,12 +27,12 @@ public class PullRequestCommitAdapter extends WorkbenchAdapter { private static final DateFormat DATE_FORMAT = DateFormat .getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT); - private final PullRequestCommit commit; + private final RepositoryCommit commit; /** * @param commit */ - public PullRequestCommitAdapter(PullRequestCommit commit) { + public PullRequestCommitAdapter(RepositoryCommit commit) { this.commit = commit; } @@ -41,7 +41,7 @@ public class PullRequestCommitAdapter extends WorkbenchAdapter { * * @return commit */ - public PullRequestCommit getCommit() { + public RepositoryCommit getCommit() { return commit; } |