You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT]: support pull_request_creation_policy on github_repository #3348
The provider currently has no support for the repository-level pull_request_creation_policy setting, which controls who can create pull requests in a repository.
I maintain a separate github-infra repo that manages my GitHub repositories through this provider. Because this setting is missing, that repo currently has to patch it out-of-band with a curl call against the GitHub API during Terraform apply:
values currently in use: collaborators_only and all
current workaround: a local terraform_data + local-execcurl -X PATCH /repos/{owner}/{repo} call in the infra module
This means the repository resource cannot fully express the repo settings being managed, and the workaround has to exist outside normal provider state handling.
SDK Version
terraform-provider-github (current main branch)
API Version
GitHub REST API 2022-11-28 in the current workaround; GitHub GraphQL also exposes pullRequestCreationPolicy and update support.
👋 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! 🚀
Activity
github-actions commentedon Apr 19, 2026
👋 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! 🚀RoFz commentedon Apr 19, 2026
Implemented in PR #3349
usmonster commentedon Jul 31, 2026
Duplicate of #3198?