Hi community, What is the difference bwtween use `...
# general
b
Hi community, What is the difference bwtween use
BranchProtection
github resource https://www.pulumi.com/docs/reference/pkg/github/branchprotection/#branchprotection And
BranchProtectionV3
github resource ? https://www.pulumi.com/docs/reference/pkg/github/branchprotectionv3/#branchprotectionv3 I see there are some different resource properties inputs like in v3 there is
branch
and in normal version i choose the branch using
pattern
parameter Which one should I choose?
m
The 
github.BranchProtection
 resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
b
Is it to the GraphQL github API?
How do I know where should I point to guthub api rest and github graphql,? I mean I use
github.BranchProtection
to enforce some branch rules and it works, but is not clear for me if I should do it pointing to the rest api instead of graphql …
m
github.BranchProtection
uses the GraphQL GitHub API
I would imagine the GraphQL API would be more efficient, and if for some reason it doesn't support something, you would use the REST API.
1