pulumi / pulumi-github

A Pulumi package to facilitate interacting with GitHub
Apache License 2.0
58 stars 10 forks source link

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

Open dududko opened 3 years ago

dududko commented 3 years ago

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.

mjeffryes commented 1 day ago

Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still encountering this problem, could you leave a quick comment to let us know so we can prioritize it?