我有TeamCity生成的GitHub状态检查,我正在尝试删除它(不只是禁用它)。
我尝试过(添加换行符以提高可读性):
curl -u <myusername>:<mytoken>
-X DELETE
https://:github_instance/api/v3/repos/:user/:repo/statuses/:hash
我从以下网址获得了网址:
curl -u <myusername>:<mytoken>
https://:github_instance/api/v3/repos/:user/:repo/statuses/:branch_name
我错过了什么吗?
答案 0 :(得分:7)
我看到GitHub API V3 Repository Statuses(对于github.com或私有GitHub企业实例)包括:
据我所知,没有删除。
答案 1 :(得分:4)
就像@VonC一样,我找不到删除选项。但是,您可以禁用所有现有检查,以使其不再在您的PR上运行。
Settings
Branches
Branch protection rules
Edit (next to your desired branch, e.g. 'master')
Rule settings
Require status checks to pass before merging
Require branches to be up to date before merging
< Uncheck any statuses you want to disable! >