Skip to content

Commit 2f8ebf0

Browse files
Update id to ruleId
1 parent 2c1c9c0 commit 2f8ebf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/actions/file/src/openIssueForFinding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function openIssueForFinding(octokit: Octokit, repoWithOwner: strin
1717
});
1818
} else {
1919

20-
const labels = [`${finding.scannerType} rule: ${finding.id}`, `${finding.scannerType}-scanning-issue`];
20+
const labels = [`${finding.scannerType} rule: ${finding.ruleId}`, `${finding.scannerType}-scanning-issue`];
2121

2222
// Otherwise, create a new issue
2323
const title = `Accessibility issue: ${finding.problemShort[0].toUpperCase() + finding.problemShort.slice(1)} on ${new URL(finding.url).pathname}`;

.github/actions/file/src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type Finding = {
22
scannerType: string;
3-
id: string;
3+
ruleId: string;
44
url: string;
55
html: string;
66
problemShort: string;

.github/actions/find/src/findForUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function findForUrl(url: string): Promise<Finding[]> {
1717
html: violation.nodes[0].html,
1818
problemShort: violation.help.toLowerCase(),
1919
problemUrl: violation.helpUrl,
20-
id: violation.id,
20+
ruleId: violation.id,
2121
solutionShort: violation.description.toLowerCase(),
2222
solutionLong: violation.nodes[0].failureSummary
2323
}));

0 commit comments

Comments
 (0)