Skip to content

Commit 1eebbb1

Browse files
committed
fix: Fixed branch protection v3 status checks churn
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 4b77944 commit 1eebbb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

github/resource_github_branch_protection_v3.go

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func resourceGithubBranchProtectionV3() *schema.Resource {
5959
"contexts": {
6060
Type: schema.TypeSet,
6161
Optional: true,
62+
Computed: true,
6263
Deprecated: "GitHub is deprecating the use of `contexts`. Use a `checks` array instead.",
6364
Elem: &schema.Schema{
6465
Type: schema.TypeString,
@@ -67,10 +68,12 @@ func resourceGithubBranchProtectionV3() *schema.Resource {
6768
"checks": {
6869
Type: schema.TypeSet,
6970
Optional: true,
71+
Computed: true,
7072
Description: "The list of status checks to require in order to merge into this branch. No status checks are required by default. Checks should be strings containing the 'context' and 'app_id' like so 'context:app_id'",
7173
Elem: &schema.Schema{
7274
Type: schema.TypeString,
7375
},
76+
ConflictsWith: []string{"required_status_checks.0.contexts"},
7477
},
7578
},
7679
},

0 commit comments

Comments
 (0)