You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this reverts a previous change to the BranchRestrictionsRequest as it does not behave as expected such that restrictions configured for individual repositories still result in an error if users/teams fields are not set e.g.
No subschema in "anyOf" matched.
"teams", "users" weren't supplied.
Not all subschemas of "allOf" matched.
For 'anyOf/1', {"apps"=>["myApp"]} is not a null.
or if set to nil or []string{} e.g.
422 Validation Failed [{Resource: Field: Code: Message:Only organization repositories can have users and team restrictions}]
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @anGie44 !
LGTM, and unless you know of a solution using curl that we could reverse-engineer, then I don't have any other suggestions than to just go ahead and merge this PR.
thank you @gmlewis and @andrew-waters! would love to get this in the next release to help the Terraform Provider Github project benefit from the new features already in v32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cla: yesIndication that the PR author has signed a Google Contributor License Agreement.
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1546
Notes:
BranchRestrictionsRequestas it does not behave as expected such that restrictions configured for individual repositories still result in an error if users/teams fields are not set e.g.or if set to
nilor[]string{}e.g.