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(branch_protection_v3): ignore context when value exists in checks #2232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jporzucek
Copy link
Contributor

Resolves #1701

Before the change?

github_branch_protection_v3 flattens all contexts even if they're only configured in checks and if contexts field is empty in required_status_checks.

After the change?

If the context is already in checks, it's not parsed into context field.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

  • Yes
  • No

It doesn't break anything since contexts in checks are still applied and they'll be applied by GitHub to contexts.


@jporzucek jporzucek changed the title branch_protection_v3: ignore context when value exist in checks branch_protection_v3: ignore context when value exists in checks Apr 16, 2024
@jporzucek jporzucek changed the title branch_protection_v3: ignore context when value exists in checks fix(branch_protection_v3): ignore context when value exists in checks Apr 16, 2024
@bahag-hammera
Copy link

@jporzucek Is there an Update on this PR we are waiting heavily on this fix :) @kfcampbell

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.

[BUG] github_branch_protection_v3 tries to delete the contexts every time
2 participants