curl --location --request PATCH 'https://api.github.com/repos///branches//protection/required_status_checks' \
--header 'Content-Type: application/json' \
--data-raw '{
"contexts": [
"continuous-integration/travis-ci"
],
"strict": true
}'
{
"contexts": [
"continuous-integration/travis-ci"
],
"contexts_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contexts",
"strict": true,
"url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通