GitHub has introduced new repository settings that allow maintainers to disable pull requests entirely or restrict them to collaborators only. This update gives maintainers more control over how repositories accept contributions.
Key facts
| Fact | Detail | The source says |
|---|---|---|
| Settings Availability | All public and private repositories | “These settings are available now for all public and private repositories.” |
| Disable Pull Requests | Pull requests tab not visible | “When disabled, the pull requests tab will not be visible.” |
| Restrict Pull Requests | Only collaborators can create new pull requests | “When enabled, the pull requests tab remains visible. All pull requests can be seen and commented on, but only collaborators (i.e., users…” |
What happened
GitHub has introduced new repository settings that give maintainers more control over how repositories accept contributions. Two new settings are now available: disabling pull requests entirely and restricting pull request creation to collaborators only. Disabling pull requests means the pull requests tab will not be visible, preventing anyone from seeing existing pull requests or opening new ones. This is useful for mirror repositories, read-only codebases, or projects where contributions are not desired. Restricting pull requests to collaborators allows the pull requests tab to remain visible, but only users with write access can create new pull requests. These settings are available now for all public and private repositories, and full UI changes will be coming soon to the mobile app.
What to weigh
- Disabling pull requests entirely removes the pull requests tab from the repository.
- Restricting pull requests to collaborators limits creation to users with write access.
FAQ
How do I disable pull requests in my repository?
Navigate to your repository's Settings > General > Features to configure pull request access.
Can I still see existing pull requests if they are disabled?
When pull requests are disabled, the pull requests tab will not be visible, and no one can see existing pull requests or open new ones.
How do I restrict pull requests to collaborators?
Navigate to your repository's Settings > General > Features to configure pull request access.
Source: GitHub
