Skip to content

Commit bcfe738

Browse files
epatpolmsohn
authored andcommitted
Fix auto-filled issue task URL
Bug: 486345 Change-Id: I409878995f8cf4f55bcf823d5b898c27e52c0cb5 Signed-off-by: Patrick-Jeffrey Pollo Guilbert <patrick.pollo.guilbert@ericsson.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
1 parent 86ba60a commit bcfe738

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueConnector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public TaskData getTaskData(TaskRepository repository, String taskId,
377377
public String getRepositoryUrlFromTaskUrl(String taskFullUrl) {
378378
if (taskFullUrl != null) {
379379
Matcher matcher = Pattern.compile(
380-
"(http://.+?)/issues/issue/([^/]+)").matcher(taskFullUrl); //$NON-NLS-1$
380+
"(http://.+?)/issues/([^/]+)").matcher(taskFullUrl); //$NON-NLS-1$
381381
if (matcher.matches())
382382
return matcher.group(1);
383383
}
@@ -388,7 +388,7 @@ public String getRepositoryUrlFromTaskUrl(String taskFullUrl) {
388388
public String getTaskIdFromTaskUrl(String taskFullUrl) {
389389
if (taskFullUrl != null) {
390390
Matcher matcher = Pattern
391-
.compile(".+?/issues/issue/([^/]+)").matcher(taskFullUrl); //$NON-NLS-1$
391+
.compile(".+?/issues/([^/]+)").matcher(taskFullUrl); //$NON-NLS-1$
392392
if (matcher.matches())
393393
return matcher.group(1);
394394
}
@@ -397,7 +397,7 @@ public String getTaskIdFromTaskUrl(String taskFullUrl) {
397397

398398
@Override
399399
public String getTaskUrl(String repositoryUrl, String taskId) {
400-
return repositoryUrl + "/issues/issue/" + taskId; //$NON-NLS-1$
400+
return repositoryUrl + "/issues/" + taskId; //$NON-NLS-1$
401401
}
402402

403403
@Override

org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/issue/IssueConnectorUi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public IHyperlink[] findHyperlinks(TaskRepository repository, String text,
160160
} else if (user != null && project != null) {
161161
Region region = createRegion(textOffset, matcher);
162162
String url = GitHub.createGitHubUrl(user, project)
163-
+ "/issues/issue/" + taskId;
163+
+ "/issues/" + taskId;
164164
hyperlinks.add(new URLHyperlink(region, url));
165165
}
166166
}

0 commit comments

Comments
 (0)