pull_requests
array.checks:write
permission to edit check runs.curl --location --request PATCH 'https://api.github.com/repos///check-runs/' \
--header 'Content-Type: application/json' \
--data-raw '{
"completed_at": "2018-05-04T01:14:52Z",
"conclusion": "success",
"name": "mighty_readme",
"output": {
"annotations": [
{
"annotation_level": "warning",
"end_line": 2,
"message": "Check your spelling for '\''banaas'\''.",
"path": "README.md",
"raw_details": "Do you mean '\''bananas'\'' or '\''banana'\''?",
"start_line": 2,
"title": "Spell Checker"
},
{
"annotation_level": "warning",
"end_line": 4,
"message": "Check your spelling for '\''aples'\''",
"path": "README.md",
"raw_details": "Do you mean '\''apples'\'' or '\''Naples'\''",
"start_line": 4,
"title": "Spell Checker"
}
],
"images": [
{
"alt": "Super bananas",
"image_url": "http://example.com/images/42"
}
],
"summary": "There are 0 failures, 2 warnings, and 1 notices.",
"text": "You may have some misspelled words on lines 2 and 4. You also may want to add a section in your README about how to install your app.",
"title": "Mighty Readme report"
},
"started_at": "2018-05-04T01:14:52Z",
"status": "completed"
}'
Authorization: Bearer ********************
label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see "Check runs and requested actions."YYYY-MM-DDTHH:MM:SSZ
.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
.conclusion
will automatically set the status
parameter to completed
. You cannot change a check run conclusion to stale
, only GitHub can set this.output
object, including a title
and summary
and can optionally provide descriptive details about the run. See the output
object description.YYYY-MM-DDTHH:MM:SSZ
.queued
, in_progress
, or completed
.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通