summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-03-24 19:06:17 (EDT)
committer Chris Aniszczyk2011-03-30 18:06:58 (EDT)
commit939031cb56d2dab5ef9ce0211de0c5524cbade27 (patch)
tree379334633861b0e2ccf0f604bb5b6b0972c2086a
parent9cde2af6d453089109be5fc42ac40b1c3559b312 (diff)
downloadegit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.zip
egit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.tar.gz
egit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.tar.bz2
Add issue reporter as task attributerefs/changes/18/2918/4
The user who reported the issue will now be display in the People section of the task editor. Bug: 340902 Change-Id: I459d0b45abd7087ea87466a11c20622e2aefaa9a Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java4
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java
index c0927d0..2c847dc 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java
@@ -24,7 +24,9 @@ public enum GitHubTaskAttributes {
MODIFICATION_DATE("Modified:",TaskAttribute.DATE_MODIFICATION,TaskAttribute.TYPE_DATETIME,true,true,false),
CLOSED_DATE("Closed:",TaskAttribute.DATE_COMPLETION,TaskAttribute.TYPE_DATETIME,false,true,false),
- STATUS("Status:",TaskAttribute.STATUS,TaskAttribute.TYPE_SHORT_TEXT,true,false,true);
+ STATUS("Status:",TaskAttribute.STATUS,TaskAttribute.TYPE_SHORT_TEXT,true,false,true),
+ REPORTER("Reporter:", TaskAttribute.USER_REPORTER, TaskAttribute.TYPE_PERSON, true, true, false)
+ ;
private final String id;
private final String label;
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java
index 62649e7..fd5c2bd 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java
@@ -73,6 +73,7 @@ public class GitHubTaskDataHandler extends AbstractTaskDataHandler {
createAttribute(data, GitHubTaskAttributes.CREATION_DATE, toLocalDate(issue.getCreated_at()));
createAttribute(data, GitHubTaskAttributes.MODIFICATION_DATE, toLocalDate(issue.getCreated_at()));
createAttribute(data, GitHubTaskAttributes.CLOSED_DATE, toLocalDate(issue.getClosed_at()));
+ createAttribute(data, GitHubTaskAttributes.REPORTER, issue.getUser());
if (isPartial(data)) {
data.setPartial(true);