File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
resource "github_branch_protection" "hackathon_master" {
2
- repository = " hackathon"
3
- branch = " master"
2
+ repository_id = " hackathon"
3
+ pattern = " master"
4
4
enforce_admins = false
5
5
6
6
required_status_checks {}
@@ -9,33 +9,31 @@ resource "github_branch_protection" "hackathon_master" {
9
9
dismiss_stale_reviews = false
10
10
}
11
11
12
- restrictions {
13
- teams = [ " imas_hack" ]
14
- }
12
+ push_restrictions = [
13
+ " imas_hack"
14
+ ]
15
15
}
16
16
17
17
resource "github_branch_protection" "mastodon_imastodon" {
18
- repository = " mastodon"
19
- branch = " imastodon"
18
+ repository_id = " mastodon"
19
+ pattern = " imastodon"
20
20
enforce_admins = false
21
21
22
22
required_status_checks {
23
23
strict = false
24
24
contexts = [
25
- " ci/circleci: test-ruby2.6" ,
25
+ " ci/circleci: test-ruby2.6" ,
26
26
]
27
27
}
28
28
29
29
required_pull_request_reviews {
30
30
dismiss_stale_reviews = false
31
31
}
32
-
33
- restrictions {}
34
32
}
35
33
36
34
resource "github_branch_protection" "imasparql_master" {
37
- repository = " imasparql"
38
- branch = " master"
35
+ repository_id = " imasparql"
36
+ pattern = " master"
39
37
enforce_admins = false
40
38
41
39
required_status_checks {
@@ -48,6 +46,4 @@ resource "github_branch_protection" "imasparql_master" {
48
46
require_code_owner_reviews = true
49
47
required_approving_review_count = 1
50
48
}
51
-
52
- restrictions {}
53
49
}
You can’t perform that action at this time.
0 commit comments