Skip to content

[FEAT]: Configuring automatic code review by Copilot #2641

Open

Description

@kyledecot

Describe the need

Github recently added a new checkbox to organization rulesets to enable automatic code review of pull requests (see here).

There is currently no way to enable this via the github_organization_ruleset resource as far as I can tell.

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Feature
    on Apr 26, 2025
  2. johan-osvaldsson-ingka commented on May 9, 2025

    @johan-osvaldsson-ingka

    There is no way to enable this for a github_repository_ruleset either.
    There is a more general issue for configuring copilot support which already has some activity: #2583

  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Jun 3, 2025
  4. mkushakov commented on Sep 11, 2025

    @mkushakov
  5. nnellanspdl commented on Sep 30, 2025

    @nnellanspdl

    If I use Terraform to manage my Rulesets, and then enable this feature manually (due to no provider support), then this causes future TF Plans to error out due to provider crashes.

  6. moved this from Backlog to On Deck in Terraform Provideron Oct 14, 2025
  7. Invincibear commented on Dec 30, 2025

    @Invincibear

    It's been ~9mo since this was requested, surely we can add a simple rule to match the UI & API?

      rules {
        copilot_code_review {
          review_draft_pull_requests = true
          review_on_push             = true
        }
      }
  8. mkushakov commented on Jan 5, 2026

    @mkushakov

    Recently GitHub changed API for this field and recent https://github.com/google/go-github/releases/tag/v80.0.0 doesn't have support for it yet but fix is merged on master. Beside the fact that current used SDK version for ruleset is way behind

    "github.com/google/go-github/v67/github"

  9. deiga commented on Jan 5, 2026

    @deiga
    Collaborator

    We're currently working on releasing v7 of this provider which upgrades to v77 of go-github and has a number of breaking changes. Once that is released we can finally get rulesets updated to match the current API

  10. mkushakov commented on Jan 6, 2026

    @mkushakov

    FYI, google just released v81 SDK version which includes support for Copilot code reviews ruleset https://github.com/google/go-github/releases/tag/v81.0.0

    fix!: Change copilot_code_review field names to match GitHub API (https://github.com/google/go-github/pull/3874)
    BREAKING CHANGE: CopilotCodeReviewRuleParameters.ReviewNewPushes is now ReviewOnPush.
    
  11. deiga commented on Jan 11, 2026

    @deiga
    Collaborator

    We've now upgraded to v81 of the SDK. We'd love to see a PR for this :)

  12. deiga commented on Jan 13, 2026

    @deiga
    Collaborator

    Resolved by #2965

  13. removed
    Status: Triage
    on Jan 14, 2026
  14. stevehipwell commented on Jan 14, 2026

    @stevehipwell
    Collaborator

    @deiga #2965 doesn't currently fix this issue as it's currently only for repo rulesets.

  15. modified the milestones: v7.0.0, on Apr 18, 2026
  16. removed this from the milestone on Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions