Skip to content

Commit b80cbb9

Browse files
committed
Udpates adding a ruleId label
1 parent 1a50d81 commit b80cbb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/file/src/openIssue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export async function openIssue(octokit: Octokit, repoWithOwner: string, finding
2222
const repo = repoWithOwner.split('/')[1]
2323

2424
const labels = [
25-
`${finding.scannerType}${finding.ruleId ? ` rule: ${finding.ruleId}` : ''}`,
2625
`${finding.scannerType}-scanning-issue`,
26+
...(finding.ruleId ? [`${finding.scannerType} rule: ${finding.ruleId}`] : []),
2727
]
2828
const title = truncateWithEllipsis(
2929
`Accessibility issue: ${finding.problemShort[0].toUpperCase() + finding.problemShort.slice(1)} on ${new URL(finding.url).pathname}`,

0 commit comments

Comments
 (0)