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
@@ -16,23 +16,9 @@ In a check suite, GitHub limits the number of check runs with the same name to 1
16
16
17
17
```js
18
18
octokit.checks.create({
19
-
owner,
20
-
repo,
21
-
name,
22
-
head_sha,
23
-
output.title,
24
-
output.summary,
25
-
output.annotations[].path,
26
-
output.annotations[].start_line,
27
-
output.annotations[].end_line,
28
-
output.annotations[].annotation_level,
29
-
output.annotations[].message,
30
-
output.images[].alt,
31
-
output.images[].image_url,
32
-
actions[].label,
33
-
actions[].description,
34
-
actions[].identifier
35
-
})
19
+
owner,
20
+
repo,
21
+
});
36
22
```
37
23
38
24
## Parameters
@@ -51,156 +37,11 @@ actions[].identifier
51
37
</td></tr>
52
38
<tr><td>repo</td><td>yes</td><td>
53
39
54
-
</td></tr>
55
-
<tr><td>name</td><td>yes</td><td>
56
-
57
-
The name of the check. For example, "code-coverage".
58
-
59
-
</td></tr>
60
-
<tr><td>head_sha</td><td>yes</td><td>
61
-
62
-
The SHA of the commit.
63
-
64
-
</td></tr>
65
-
<tr><td>details_url</td><td>no</td><td>
66
-
67
-
The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
68
-
69
-
</td></tr>
70
-
<tr><td>external_id</td><td>no</td><td>
71
-
72
-
A reference for the run on the integrator's system.
73
-
74
40
</td></tr>
75
41
<tr><td>status</td><td>no</td><td>
76
42
77
-
The current status. Can be one of `queued`, `in_progress`, or `completed`.
78
-
79
-
</td></tr>
80
-
<tr><td>started_at</td><td>no</td><td>
81
-
82
-
The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
83
-
84
-
</td></tr>
85
-
<tr><td>conclusion</td><td>no</td><td>
86
-
87
-
**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `action_required`, `cancelled`, `failure`, `neutral`, `success`, `skipped`, `stale`, or `timed_out`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`.
88
-
**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.
89
-
90
-
</td></tr>
91
-
<tr><td>completed_at</td><td>no</td><td>
92
-
93
-
The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
94
-
95
-
</td></tr>
96
-
<tr><td>output</td><td>no</td><td>
97
-
98
-
Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/rest/reference/checks#output-object) description.
99
-
100
-
</td></tr>
101
-
<tr><td>output.title</td><td>yes</td><td>
102
-
103
-
The title of the check run.
104
-
105
-
</td></tr>
106
-
<tr><td>output.summary</td><td>yes</td><td>
107
-
108
-
The summary of the check run. This parameter supports Markdown.
109
-
110
-
</td></tr>
111
-
<tr><td>output.text</td><td>no</td><td>
112
-
113
-
The details of the check run. This parameter supports Markdown.
114
-
115
-
</td></tr>
116
-
<tr><td>output.annotations</td><td>no</td><td>
117
-
118
-
Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see "[About status checks](https://help.github.com/articles/about-status-checks#checks)". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object) description for details about how to use this parameter.
The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.
The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.
Details about this annotation. The maximum size is 64 KB.
164
-
165
-
</td></tr>
166
-
<tr><td>output.images</td><td>no</td><td>
167
-
168
-
Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/rest/reference/checks#images-object) description for details.
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/reference/checks#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/reference/checks#check-runs-and-requested-actions)."
189
-
190
-
</td></tr>
191
-
<tr><td>actions[].label</td><td>yes</td><td>
192
-
193
-
The text to be displayed on a button in the web UI. The maximum size is 20 characters.
0 commit comments