Skip to content

Commit 7702c24

Browse files
Test how Copilot performs when we add normative language and acceptance criteria to the issue description
1 parent 60ad8c7 commit 7702c24

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,21 @@ export async function openIssueForFinding(octokit: Octokit, repoWithOwner: strin
3131
: line
3232
)
3333
.join("\n");
34+
const acceptanceCriteria = `## Acceptance Criteria
35+
- [ ] The specific axe 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.
37+
- [ ] A test SHOULD be added to ensure this specific axe violation does not regress.
38+
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.
39+
`
40+
3441
const body = `
42+
## What
3543
An accessibility scan flagged the element \`${finding.html}\` on ${finding.url} because ${finding.problemShort}. Learn more about why this was flagged by visiting ${finding.problemUrl}.
3644
3745
To fix this, ${finding.solutionShort}.
3846
${solutionLong ? `\nSpecifically:\n\n${solutionLong}` : ''}
47+
48+
${acceptanceCriteria}
3949
`;
4050

4151
return octokit.request(`POST /repos/${owner}/${repo}/issues`, {

0 commit comments

Comments
 (0)