I have Terraform Cloud connected to my GitHub repository (via GitHub App integration).

Here’s my setup:

A branch named feature-cr-001 was created from dev.

I made code changes and opened a pull request back to dev.

Terraform Cloud automatically triggered a speculative plan (working).

The problem is:

The "Merge pull request" button is still enabled — I want it to wait (block merge) until the Terraform Cloud plan completes successfully.

enter image description here

1 Reply 1

You'll need to add a Branch Ruleset in which you configure required checks:

From the settings, rulesets add a new ruleset

Enable the require checks to pass rule and enter the required data:

Add a status check requirement

You can enter the name of a check that has previously run.

Set the status to Active: Change the status from evaluate to active

And specify one or more target branches: Select one or more target branches

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.