File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 19
19
20
20
package org.ossreviewtoolkit.analyzer
21
21
22
+ import org.ossreviewtoolkit.downloader.VcsHost
22
23
import org.ossreviewtoolkit.model.AnalyzerResult
23
24
import org.ossreviewtoolkit.model.DependencyGraph
24
25
import org.ossreviewtoolkit.model.DependencyGraphNavigator
@@ -58,12 +59,16 @@ class AnalyzerResultBuilder {
58
59
val existingProject = projects.find { it.id == projectAnalyzerResult.project.id }
59
60
60
61
if (existingProject != null ) {
61
- val existingDefinitionFileUrl = existingProject.let {
62
- " ${it.vcsProcessed.url} /${it.definitionFilePath} "
62
+ val existingDefinitionFileUrl = with (existingProject) {
63
+ VcsHost .fromUrl(vcsProcessed.url)
64
+ ?.toPermalink(vcsProcessed.copy(path = definitionFilePath))
65
+ ? : " ${vcsProcessed.url} /$definitionFilePath "
63
66
}
64
67
65
- val incomingDefinitionFileUrl = projectAnalyzerResult.project.let {
66
- " ${it.vcsProcessed.url} /${it.definitionFilePath} "
68
+ val incomingDefinitionFileUrl = with (projectAnalyzerResult.project) {
69
+ VcsHost .fromUrl(vcsProcessed.url)
70
+ ?.toPermalink(vcsProcessed.copy(path = definitionFilePath))
71
+ ? : " ${vcsProcessed.url} /$definitionFilePath "
67
72
}
68
73
69
74
val issue = createAndLogIssue(
You can’t perform that action at this time.
0 commit comments