Go-github: Need a function to remove status check contexts

Created on 4 Jan 2021  路  1Comment  路  Source: google/go-github

I want to remove all the status checks that are added under my branch protection, to do so I tried using this UPDATE API call with the array of status checks as empty: https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#update-status-check-protection
but I'm not able to achieve what I wanted.
Then I tried using this recent DELETE API to remove status checks,
https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#remove-status-check-protection
It worked but there is no equivalent function in this go package. Can you add the same?

Most helpful comment

@gmlewis I can take this.

>All comments

@gmlewis I can take this.

Was this page helpful?
0 / 5 - 0 ratings