pull_requests
array.checks:write
permission to create check runs.curl --location --request POST 'https://api.github.com/repos///check-runs' \
--header 'Content-Type: application/json' \
--data-raw '{
"actions": [
{
"description": "Allow us to fix these errors for you",
"identifier": "fix_errors",
"label": "Fix"
}
],
"completed_at": "2017-11-30T19:49:10Z",
"conclusion": "success",
"head_sha": "ce587453ced02b1526dfb4cb910479d431683101",
"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": "2017-11-30T19:39:10Z",
"status": "completed"
}'
Authorization: Bearer ********************
check_run.requested_action
webhook to your app. Each action includes a 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." 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
. When the conclusion is action_required
, additional details should be provided on the site specified by details_url
.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开发者 交流群,互助沟通