Skip to content

[FEAT]: Add automatic_copilot_code_review_enabled support for repository rulesΒ #2694

@lkiii

Description

@lkiii

Describe the need

gh api repos/org/repo/rules/branches/main returns

  {
    "type": "pull_request",
    "parameters": {
      "required_approving_review_count": 1,
      "dismiss_stale_reviews_on_push": true,
      "require_code_owner_review": true,
      "require_last_push_approval": true,
      "required_review_thread_resolution": true,
      "automatic_copilot_code_review_enabled": true,
      "allowed_merge_methods": [
        "merge",
        "squash",
        "rebase"
      ]
    },

Which shows the flag automatic_copilot_code_review_enabled

Terraform provider should support setting this flag

SDK Version

No response

API Version

No response

Relevant log output

Unexpected attribute: An attribute named "automatic_copilot_code_review_enabled" is not expected here

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    On Deck

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions