Update common.go
add 'DefaultBranch' match_type
@@ -50,6 +50,7 @@ const (
const (
matchTypeExact string = "Exact"
matchTypePrefix string = "Prefix"
+ matchTypeDefaultBranch string = "DefaultBranch"
)
// policyCrudArgs arguments for genBasePolicyResource
@@ -113,7 +114,7 @@ func genBasePolicyResource(crudArgs *policyCrudArgs) *schema.Resource {
Default: matchTypeExact,
DiffSuppressFunc: suppress.CaseDifference,
ValidateFunc: validation.StringInSlice([]string{
- matchTypeExact, matchTypePrefix,
+ matchTypeExact, matchTypePrefix, matchTypeDefaultBranch,
}, true),
},
},
