Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-15 00:49:53 +0000
committerChris Aniszczyk2011-04-15 15:10:47 +0000
commit23fc43bc827c21cc96b2aca0f242f3de4e1d2a63 (patch)
treeb6c8a69258fd4a8f90575e846e9803ee4ef1e812
parent8ed530d0cf51ce71b120de3ac1c9ec3d2c4769c2 (diff)
downloadegit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.tar.gz
egit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.tar.xz
egit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.zip
Set task attachment id to be gist file name
File names are unique in gists and attachment ids are required to be able to navigate from the outline view to a specific row in the attachments table. Change-Id: Ie27ed8f7bd5b324b2f59eeee5102ad67e221648f 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/internal/github/core/gist/GistTaskDataHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
index 5ae7ef64..c77efdc6 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
@@ -146,6 +146,7 @@ public class GistTaskDataHandler extends AbstractTaskDataHandler {
attachmentMapper.setLength((long) file.getSize());
attachmentMapper.setPatch(false);
attachmentMapper.setAuthor(reporterPerson);
+ attachmentMapper.setAttachmentId(file.getFilename());
TaskAttribute attribute = data.getRoot().createAttribute(
TaskAttribute.PREFIX_ATTACHMENT + count);
attachmentMapper.applyTo(attribute);

Back to the top