Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed branch protection v3 status checks churn #2502

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading