Skip to content

Commit 9b4f0d1

Browse files
committed
feat: add aggregation card with custom title
Signed-off-by: Diana Janickova <djanicko@redhat.com>
1 parent 4bbe474 commit 9b4f0d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

workspaces/scorecard/app-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ scorecard:
176176
type: statusGrouped
177177
description: This KPI is provide information about Jira open issues grouped by status.
178178
metricId: jira.open_issues
179+
licenseFileExistsKpi:
180+
title: License File Exists KPI
181+
type: statusGrouped
182+
description: This KPI is provide information about whether the license file exists in the repository.
183+
metricId: github.files_check.license
179184
plugins:
180185
jira:
181186
open_issues:

workspaces/scorecard/plugins/scorecard/src/alpha/extensions/homePageCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function AggregatedCardWithGithubOpenPrsContent() {
4848
}
4949

5050
function AggregatedCardWithGithubFilesCheckLicenseContent() {
51-
return <ScorecardHomepageCard aggregationId="github.files_check.license" />;
51+
return <ScorecardHomepageCard aggregationId="licenseFileExistsKpi" />;
5252
}
5353

5454
function AggregatedCardWithGithubFilesCheckCodeownersContent() {

0 commit comments

Comments
 (0)