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
**Required** Token with fine-grained permission 'issues: write'.
24
24
25
+
#### `cached_findings`
26
+
27
+
**Optional** Cached findings from previous runs, as stringified JSON. Without this, duplicate issues may be filed. For example: `'[]'`.
28
+
25
29
### Outputs
26
30
27
-
#### `issue_numbers`
31
+
#### `findings`
32
+
33
+
List of potential accessibility gaps (plus issue URLs), as stringified JSON. For example:
34
+
35
+
```JS
36
+
'[]'
37
+
```
38
+
39
+
#### `closed_issue_urls`
40
+
41
+
List of URLs for closed issues, as stringified JSON. For example: `'["https://github.com/github/docs/issues/123","https://github.com/github/docs/issues/124","https://github.com/github/docs/issues/126","https://github.com/github/docs/issues/127"]'`.
42
+
43
+
#### `opened_issue_urls`
44
+
45
+
List of URLs for newly-opened issues, as stringified JSON. For example: `'["https://github.com/github/docs/issues/123","https://github.com/github/docs/issues/124","https://github.com/github/docs/issues/126","https://github.com/github/docs/issues/127"]'`.
46
+
47
+
#### `repeated_issue_urls`
28
48
29
-
List of issue numbers for created issues, as stringified JSON. For example: `'[123, 124, 126, 127]'`.
49
+
List of URLs for repeated issues, as stringified JSON. For example: `'["https://github.com/github/docs/issues/123","https://github.com/github/docs/issues/124","https://github.com/github/docs/issues/126","https://github.com/github/docs/issues/127"]'`.
consttitle=`Accessibility issue: ${finding.problemShort[0].toUpperCase()+finding.problemShort.slice(1)} on ${newURL(finding.url).pathname}`;
21
+
constsolutionLong=finding.solutionLong
22
+
?.split("\n")
23
+
.map((line)=>
24
+
!line.trim().startsWith("Fix any")&&
25
+
!line.trim().startsWith("Fix all")&&
26
+
line.trim()!==""
27
+
? `- ${line}`
28
+
: line
29
+
)
30
+
.join("\n");
31
+
constbody=`
32
+
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}.
0 commit comments