Skip to content

Commit 4d54209

Browse files
change summary link (#295)
1 parent de19443 commit 4d54209

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/commands/result.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func SummaryReport(
9898
if err != nil {
9999
return nil, err
100100
}
101+
summary.BaseURI = wrappers.GetURL(fmt.Sprintf("projects/%s/overview", summary.ProjectID))
101102
summary.TotalIssues = int(results.TotalCount)
102103
for _, result := range results.Results {
103104
countResult(summary, result)

internal/wrappers/results-summary.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type ResultSummary struct {
1616
ScanTime string
1717
CreatedAt string
1818
ProjectID string
19+
BaseURI string
1920
Tags map[string]string
2021
}
2122

@@ -387,7 +388,7 @@ const SummaryTemplate = `
387388
</div>
388389
389390
<div class="data">
390-
<a href="https://ast-master.dev.cxast.net/#/projects/{{.ProjectID}}/overview" target="_blank">More details</a>
391+
<a href="{{.BaseURI}}" target="_blank">More details</a>
391392
</div>
392393
</div>
393394

0 commit comments

Comments
 (0)