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.
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?
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.
I would like to just put this attribute to enable the Restrictions
2) If I specify at least one user the Restrictions are enabled
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.