Open
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/branches/branch-protection#remove-status-check-contexts
What part(s) of the article would you like to see updated?
The API in document has wrong content sent. It should directly include list rather than adding it under context.
This is regarding API for - Remove status check contexts
The api body parameters need to be fixed. It should not have an. contexts subpart.
So
-d '{"contexts":["continuous-integration/travis-ci"]}'
should be -d '["continuous-integration/travis-ci"]'
I have tested it and it only works with this.
Additional information
No response