Skip to content

Commit

Permalink
fix: Fixed branch protection v3 status checks churn
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <[email protected]>
  • Loading branch information
stevehipwell committed Dec 5, 2024
1 parent 1c11053 commit a42bada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions github/resource_github_branch_protection_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func resourceGithubBranchProtectionV3() *schema.Resource {
"contexts": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Deprecated: "GitHub is deprecating the use of `contexts`. Use a `checks` array instead.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -67,10 +68,12 @@ func resourceGithubBranchProtectionV3() *schema.Resource {
"checks": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
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'",
Elem: &schema.Schema{
Type: schema.TypeString,
},
ConflictsWith: []string{"required_status_checks.0.contexts"},
},
},
},
Expand Down

0 comments on commit a42bada

Please sign in to comment.