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

[Go] [Branch Protection] [Restrictions] unexpected result #147

Open
dududko opened this issue Aug 4, 2021 · 0 comments
Open

[Go] [Branch Protection] [Restrictions] unexpected result #147

dududko opened this issue Aug 4, 2021 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@dududko
Copy link

dududko commented Aug 4, 2021

While configuring the Restriction for a branch protection I have found multiple issues:

1) It is not possible to just enable the Restrictions without specifying Users, Apps or Teams. At least one user, team or app must be specified.

Screen Shot 2021-08-04 at 1 32 23 PM

I would like to just put this attribute to enable the Restrictions

			Restrictions: github.BranchProtectionV3RestrictionsArgs{},

2) If I specify at least one user the Restrictions are enabled

			Restrictions: github.BranchProtectionV3RestrictionsArgs{
				Users: pulumi.StringArray{
					pulumi.String("dududko"),
				},
			},

image

3) If I remove the user it is removed from github restrictions list, but the Restrictions itself is still enabled. There is no way to disable restrictions with pulumi after it is enabled.

@dududko dududko added the kind/enhancement Improvements or new features label Aug 4, 2021
@stack72 stack72 added kind/bug Some behavior is incorrect or out of spec and removed kind/enhancement Improvements or new features labels Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants