docs icon indicating copy to clipboard operation
docs copied to clipboard

Fix API in document

Open yuvraj9 opened this issue 3 years ago • 1 comments

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

yuvraj9 avatar Sep 23 '22 23:09 yuvraj9