Open jporzucek opened 5 months ago
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.
github_branch_protection_v3
checks
contexts
required_status_checks
If the context is already in checks, it's not parsed into context field.
It doesn't break anything since contexts in checks are still applied and they'll be applied by GitHub to contexts.
@jporzucek Is there an Update on this PR we are waiting heavily on this fix :) @kfcampbell
@kfcampbell Can you take a look at this PR when you have a chance pls? 🙏
Resolves #1701
Before the change?
github_branch_protection_v3
flattens all contexts even if they're only configured inchecks
and ifcontexts
field is empty inrequired_status_checks
.After the change?
If the context is already in checks, it's not parsed into context field.
Pull request checklist
Does this introduce a breaking change?
It doesn't break anything since contexts in
checks
are still applied and they'll be applied by GitHub tocontexts
.