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

docs: Clarify how allows_force_pushes works #2129

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

bpaquet
Copy link
Contributor

@bpaquet bpaquet commented Feb 7, 2024

Resolves #2054

#2054 is not really a bug, it's more a documentation issue.
At graphql level, allowsForcePushes will be true only if everyone is allowed to bypass. If a list of bypasser is provided,
allowsForcePushes will be false.

So in the terraform config, when force_push_bypassers is used, allowsForcePushes should be kept to `false.

This PR improves the doc and add a unit test.

I can add a validation on the config to block wrong configs when the two variables are not coherent, but it can broke some existing config.

@bpaquet bpaquet marked this pull request as ready for review February 7, 2024 09:58
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks @bpaquet for the contributions here! ❤️

@nickfloyd nickfloyd added the Type: Documentation Improvements or additions to documentation label Feb 13, 2024
@nickfloyd nickfloyd changed the title fix doc for #2054: Clarify how allows_force_pushes is working docs: Clarify how allows_force_pushes works Feb 13, 2024
@nickfloyd nickfloyd merged commit 2d31318 into integrations:main Feb 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: github_branch_protection allow_force_pushes permanent diff when force_push_bypassers is specified
3 participants