https://pulumi.com logo
#general
Title
# general
b

billions-mechanic-26704

09/23/2021, 2:42 PM
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

millions-furniture-75402

09/23/2021, 2:45 PM
The 
github.BranchProtection
 resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
b

billions-mechanic-26704

09/23/2021, 2:59 PM
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

millions-furniture-75402

09/23/2021, 3:10 PM
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
3 Views