Skip to content

feat: add RepositoryMigration as valid actor_type for bypass_actors - #3337

Open
AnBorodin wants to merge 1 commit into
integrations:mainfrom
AnBorodin:feat/add-repository-migration-actor-type
Open

AnBorodin wants to merge 1 commit into
integrations:mainfrom
AnBorodin:feat/add-repository-migration-actor-type

Conversation

@AnBorodin

Copy link
Copy Markdown

Resolves #3336


Before the change?

  • actor_type in bypass_actors only accepts: Integration, OrganizationAdmin,
    RepositoryRole, Team, DeployKey
  • Using actor_type = "RepositoryMigration" causes a Terraform validation error and
    prevents plan/apply from running

After the change?

  • RepositoryMigration is added as a valid actor_type value in bypass_actors for
    both github_repository_ruleset and github_organization_ruleset resources
  • Users can now configure ruleset bypass rules for repository migrations without errors

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions

Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-actions github-actions Bot added the Type: Feature New feature or request label Apr 15, 2026
@deiga deiga modified the milestone: v6 Next Apr 15, 2026
@brntbeer

brntbeer commented May 8, 2026

Copy link
Copy Markdown

bump here, beyond getting the conflicts resolves, is there anything else to help get this prioritized?

@mymasse

mymasse commented May 13, 2026 •

Copy link
Copy Markdown

Can support be added for actor_type User in this PR also, see #3423. There is also a PR for adding EnterpriseOwner #3211

These are all related and could be combined

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The validation, tests, and documentation consistently implement the requested actor type.

Pull request overview

Adds RepositoryMigration as a valid ruleset bypass actor.

Changes:

  • Extends validation for repository and organization rulesets.
  • Adds acceptance-test coverage.
  • Updates resource documentation.
File summaries
File Description
github/resource_github_repository_ruleset.go Allows the new actor type.
github/resource_github_repository_ruleset_test.go Tests repository rulesets.
github/resource_github_organization_ruleset.go Allows and documents the new actor type.
github/resource_github_organization_ruleset_test.go Tests organization rulesets.
website/docs/r/repository_ruleset.html.markdown Updates repository documentation.
website/docs/r/organization_ruleset.html.markdown Updates organization documentation.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@deiga deiga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've refactored the docs folder structure etc. could you adjust your changes accordingly?

This branch has not been deployed

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

Labels

Type: Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Support RepositoryMigration actor type in bypass_actors for ruleset

5 participants