Skip to content

Commit a2c79d5

Browse files
authored
Updates find, file, fix action READMEs to include changes to the inputs/outputs. (#181)
Includes changes from #179.
2 parents 9f02212 + ed52816 commit a2c79d5

3 files changed

Lines changed: 57 additions & 16 deletions

File tree

.github/actions/file/README.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ Files GitHub issues to track potential accessibility gaps.
66

77
### Inputs
88

9-
#### `findings`
9+
#### `findings_file`
1010

11-
**Required** List of potential accessibility gaps, as stringified JSON. For example:
11+
**Required** Path to a JSON file containing the list of potential accessibility gaps. The path can be absolute or relative to the working directory (which defaults to `GITHUB_WORKSPACE`). For example: `findings.json`.
1212

13-
```JS
14-
'[]'
13+
The file should contain a JSON array of finding objects. For example:
14+
```json
15+
[]
1516
```
1617

1718
#### `repository`
@@ -22,12 +23,32 @@ Files GitHub issues to track potential accessibility gaps.
2223

2324
**Required** Token with fine-grained permission 'issues: write'.
2425

25-
#### `cached_filings`
26+
#### `cached_filings_file`
2627

27-
**Optional** Cached filings from previous runs, as stringified JSON. Without this, duplicate issues may be filed. For example: `'[{"findings":[],"issue":{"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"}}]'`
28+
**Optional** Path to a JSON file containing cached filings from previous runs. The path can be absolute or relative to the working directory (which defaults to `GITHUB_WORKSPACE`). Without this, duplicate issues may be filed. For example: `cached-filings.json`.
29+
30+
The file should contain a JSON array of filing objects. For example:
31+
```json
32+
[
33+
{
34+
"findings": [],
35+
"issue": {"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"}
36+
}
37+
]
38+
```
2839

2940
### Outputs
3041

31-
#### `filings`
42+
#### `filings_file`
3243

33-
List of issues filed (and their associated finding(s)), as stringified JSON. For example: `'[{"findings":[],"issue":{"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"}}]'`
44+
Absolute path to a JSON file containing the list of issues filed (and their associated finding(s)). The action writes this file to a temporary directory and returns the absolute path. For example: `$RUNNER_TEMP/filings-<uuid>.json`.
45+
46+
The file will contain a JSON array of filing objects. For example:
47+
```json
48+
[
49+
{
50+
"findings": [],
51+
"issue": {"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"}
52+
}
53+
]
54+
```

.github/actions/find/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ configuration option.
4141

4242
### Outputs
4343

44-
#### `findings`
44+
#### `findings_file`
4545

46-
List of potential accessibility gaps, as stringified JSON. For example:
46+
Absolute path to a JSON file containing the list of potential accessibility gaps. The action writes this file to a temporary directory and returns the absolute path. For example: `$RUNNER_TEMP/findings-<uuid>.json`.
4747

48-
```JS
49-
'[]'
48+
The file will contain a JSON array of finding objects. For example:
49+
```json
50+
[]
5051
```

.github/actions/fix/README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@ Attempts to fix issues with Copilot.
66

77
### Inputs
88

9-
#### `issues`
9+
#### `issues_file`
1010

11-
**Required** List of issues to attempt to fix—including, at a minimum, their `url`s—as stringified JSON. For example: `'[{"url":"https://github.com/github/docs/issues/123"},{"nodeId":"SXNzdWU6Mg==","url":"https://github.com/github/docs/issues/124"},{"id":4,"nodeId":"SXNzdWU6NA==","url":"https://github.com/github/docs/issues/126","title":"Accessibility issue: 4"}]'`.
11+
**Required** Path to a JSON file containing the list of issues to attempt to fix—including, at a minimum, their `url`s. The path can be absolute or relative to the working directory (which defaults to `GITHUB_WORKSPACE`). For example: `issues.json`.
12+
13+
The file should contain a JSON array of issue objects. For example:
14+
```json
15+
[
16+
{"url":"https://github.com/github/docs/issues/123"},
17+
{"nodeId":"SXNzdWU6Mg==","url":"https://github.com/github/docs/issues/124"},
18+
{"id":4,"nodeId":"SXNzdWU6NA==","url":"https://github.com/github/docs/issues/126","title":"Accessibility issue: 4"}
19+
]
20+
```
1221

1322
#### `repository`
1423

@@ -20,6 +29,16 @@ Attempts to fix issues with Copilot.
2029

2130
### Outputs
2231

23-
#### `fixings`
32+
#### `fixings_file`
33+
34+
Absolute path to a JSON file containing the list of pull requests filed (and their associated issues). The action writes this file to a temporary directory and returns the absolute path. For example: `$RUNNER_TEMP/fixings-<uuid>.json`.
2435

25-
List of pull requests filed (and their associated issues), as stringified JSON. For example: `'[{"issue":{"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"},"pullRequest":{"url":"https://github.com/github/docs/pulls/124"}}]'`
36+
The file will contain a JSON array of fixing objects. For example:
37+
```json
38+
[
39+
{
40+
"issue": {"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"},
41+
"pullRequest": {"url":"https://github.com/github/docs/pulls/124"}
42+
}
43+
]
44+
```

0 commit comments

Comments
 (0)