Skip to content

Commit 738ba9c

Browse files
committed
Fixes issue body formatting
1 parent daed7e9 commit 738ba9c

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/actions/file/src/generateIssueBody.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,20 @@ export function generateIssueBody(finding: Finding, screenshotRepo: string): str
1919
}
2020

2121
const acceptanceCriteria = `## Acceptance Criteria
22-
- [ ] The specific violation reported in this issue is no longer reproducible.
23-
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
24-
- [ ] A test SHOULD be added to ensure this specific violation does not regress.
25-
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.
26-
`
22+
- [ ] The specific violation reported in this issue is no longer reproducible.
23+
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
24+
- [ ] A test SHOULD be added to ensure this specific violation does not regress.
25+
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.`
2726

2827
const body = `## What
29-
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}.
28+
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}.
3029
31-
${screenshotSection ?? ''}
32-
To fix this, ${finding.solutionShort}.
33-
${solutionLong ? `\nSpecifically:\n\n${solutionLong}` : ''}
30+
${screenshotSection ?? ''}
31+
To fix this, ${finding.solutionShort}.
32+
${solutionLong ? `\nSpecifically:\n\n${solutionLong}` : ''}
3433
35-
${acceptanceCriteria}
36-
`
34+
${acceptanceCriteria}
35+
`
3736

3837
return body
3938
}

0 commit comments

Comments
 (0)