You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/actions/file/action.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,14 @@ inputs:
32
32
description: 'When true, log the issues that would be filed without opening, closing, or reopening any issues.'
33
33
required: false
34
34
default: 'false'
35
+
file_best_practice_issues:
36
+
description: 'File issues for best-practice findings (accessibility recommendations that are not hard WCAG failures). Disabling only suppresses new issues; existing ones are left untouched.'
37
+
required: false
38
+
default: 'true'
39
+
file_experimental_issues:
40
+
description: 'File issues for experimental findings (checks that are not yet stable). Disabling only suppresses new issues; existing ones are left untouched.'
Copy file name to clipboardExpand all lines: .github/actions/file/src/generateIssueBody.ts
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,25 @@ ${items}
31
31
`
32
32
}
33
33
34
+
constcategoryNotice=
35
+
finding.category&&finding.category!=='wcag'
36
+
? `> [!NOTE]\n> This is ${
37
+
finding.category==='experimental' ? 'an experimental check' : 'a best-practice recommendation'
38
+
}, not a definite WCAG failure.\n\n`
39
+
: ''
40
+
41
+
conststandardsLine=
42
+
finding.category&&finding.category!=='wcag'
43
+
? '- [ ] The fix MUST meet the accessibility standards specified by the repository or organization (WCAG 2.2 if applicable).'
44
+
: '- [ ] The fix MUST meet WCAG 2.2 guidelines OR the accessibility standards specified by the repository or organization.'
45
+
34
46
constacceptanceCriteria=`## Acceptance Criteria
35
47
- [ ] The specific violation reported in this issue is no longer reproducible.
36
-
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
48
+
${standardsLine}
37
49
- [ ] A test SHOULD be added to ensure this specific violation does not regress.
38
50
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.`
39
51
40
-
constbody=`## What
52
+
constbody=`${categoryNotice}## What
41
53
An accessibility scan ${finding.html ? `flagged the element \`${finding.html}\`` : `found an issue on ${finding.url}`} because ${finding.problemShort}. Learn more about why this was flagged by visiting ${finding.problemUrl}.
0 commit comments