Skip to content

feat: support for copilot_code_review#21

Merged
goruha merged 3 commits intocloudposse:mainfrom
thejrose1984:feature/rulesets
Apr 14, 2026
Merged

feat: support for copilot_code_review#21
goruha merged 3 commits intocloudposse:mainfrom
thejrose1984:feature/rulesets

Conversation

@thejrose1984
Copy link
Copy Markdown
Contributor

@thejrose1984 thejrose1984 commented Apr 11, 2026

what

  • Added copilot_code_review to the rules object in var.rulesets, with two optional boolean attributes: review_on_push (default: false) and review_draft_pull_requests (default: false)
  • Added a dynamic "copilot_code_review" block in main.tf to wire the new variable into the github_repository_ruleset resource
  • Bumped the minimum required GitHub provider version from >= 6.9.0 to >= 6.10.0, which is the version that introduced copilot_code_review support

why

  • Configuring Copilot code review via a repository ruleset caused perpetual drift when the setting was applied manually, because the Terraform module had no way to express it
  • GitHub Enterprise users need automated Copilot peer review on PRs without relying on org-level rulesets

references

@thejrose1984 thejrose1984 requested review from a team as code owners April 11, 2026 04:28
@mergify mergify bot added the triage Needs triage label Apr 11, 2026
@goruha
Copy link
Copy Markdown
Member

goruha commented Apr 13, 2026

/terratest

@goruha
Copy link
Copy Markdown
Member

goruha commented Apr 14, 2026

/terratest

@goruha goruha merged commit e88081d into cloudposse:main Apr 14, 2026
16 checks passed
@mergify mergify bot removed the triage Needs triage label Apr 14, 2026
@github-actions
Copy link
Copy Markdown

These changes were released in v1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support copilot code review for rulesets

2 participants