File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ const (
26
26
var falseString = "false"
27
27
28
28
// Replace branch protection pattern's special chars by dedicated string in order to avoid ID collision (pattern is used for TF ressource generation)
29
- // in case every special chars are replaced by the same string => "?.*", "[.]" or "?/?" would all lead to the same "---" ID for instance
30
- var patternToIdReplacer = strings .NewReplacer (
29
+ // in case every special chars are replaced by the same string => "?.*", "[.]" or "?/?" would all lead to the same "---" ID for instance.
30
+ var patternToIdReplacer = strings .NewReplacer (
31
31
"." , "_DOT_" ,
32
32
"/" , "_SLASH_" ,
33
33
"\\ " , "_ESC_" ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ resource "github_branch_protection" "repo1-default" {
87
87
}
88
88
}
89
89
90
- resource "github_branch_protection" "repo1-feature-branch1 " {
90
+ resource "github_branch_protection" "repo1-feature_SLASH_branch1 " {
91
91
repository_id = github_repository. repo1 . node_id
92
92
pattern = " feature/branch1"
93
93
enforce_admins = true
@@ -111,7 +111,7 @@ resource "github_branch_protection" "repo1-feature-branch1" {
111
111
}
112
112
}
113
113
114
- resource "github_branch_protection" "repo1-feature-branch2 " {
114
+ resource "github_branch_protection" "repo1-feature_SLASH_branch2 " {
115
115
repository_id = github_repository. repo1 . node_id
116
116
pattern = " feature/branch2"
117
117
enforce_admins = false
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ resource "github_branch_protection" "repo2-default" {
87
87
}
88
88
}
89
89
90
- resource "github_branch_protection" "repo2-feature-branch2 " {
90
+ resource "github_branch_protection" "repo2-feature_SLASH_branch2 " {
91
91
repository_id = github_repository. repo2 . node_id
92
92
pattern = " feature/branch2"
93
93
enforce_admins = false
@@ -111,7 +111,7 @@ resource "github_branch_protection" "repo2-feature-branch2" {
111
111
}
112
112
}
113
113
114
- resource "github_branch_protection" "repo2-feature-branch3 " {
114
+ resource "github_branch_protection" "repo2-feature_SLASH_branch3 " {
115
115
repository_id = github_repository. repo2 . node_id
116
116
pattern = " feature/branch3"
117
117
enforce_admins = true
You can’t perform that action at this time.
0 commit comments