Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Preserve existing branch status checks #8

Merged

Conversation

LucianBuzzo
Copy link

In my previous PR for this
(#7) I removed the checks value, however this results in an error when querying the GitHub API ("checks" is required). My updated approach is to first retrieve the existing set of checks on the repo, then when I update the branch protection rules, keep the checks the same. I've tested this with the cortex-api repo and it works as expected.

In my previous PR for this
(#7)
I removed the checks value, however this results in an error when
querying the GitHub API ("checks" is required). My updated approach is to first retrieve the
existing set of checks on the repo, then when I update the branch
protection rules, keep the checks the same. I've tested this with the
cortex-api repo and it works as expected.

Signed-off-by: Lucian Buzzo <lucian.buzzo@gmail.com>
@LucianBuzzo LucianBuzzo merged commit fa3f37c into main Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants