Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-02-15 18:39:45 -0500
committerKevin Sawicki2012-02-16 11:19:13 -0500
commitd534e2cb7b84771cb5b6c85db5276557973c90f9 (patch)
treec44d3e8dff3be0e0eb030a914f6c3da7bd3073de
parentb6d362e5183d48d1502ebe4196208225a89447ca (diff)
downloadegit-github-d534e2cb7b84771cb5b6c85db5276557973c90f9.tar.gz
egit-github-d534e2cb7b84771cb5b6c85db5276557973c90f9.tar.xz
egit-github-d534e2cb7b84771cb5b6c85db5276557973c90f9.zip
Use login instead of name field for issue assignee
Login is the proper field to identify the assignee, name is non-unique and not required Change-Id: I648c8eb012b8db3bb887998c6f551269c442fb15
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/IssueService.java2
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/IssueService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/IssueService.java
index b0a50a60..3b68f27d 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/IssueService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/IssueService.java
@@ -572,7 +572,7 @@ public class IssueService extends GitHubService {
params.put(FIELD_TITLE, issue.getTitle());
User assignee = issue.getAssignee();
if (assignee != null)
- params.put(FILTER_ASSIGNEE, assignee.getName());
+ params.put(FILTER_ASSIGNEE, assignee.getLogin());
Milestone milestone = issue.getMilestone();
if (milestone != null) {
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java
index 5c2f4811..13b4d572 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java
@@ -221,7 +221,7 @@ public class IssueTaskDataHandler extends GitHubTaskDataHandler {
if (assigneeValue != null) {
if (assigneeValue.trim().length() == 0)
assigneeValue = null;
- User assignee = new User().setName(assigneeValue);
+ User assignee = new User().setLogin(assigneeValue);
issue.setAssignee(assignee);
}

Back to the top