Skip to content

Commit 9e9a9a0

Browse files
moraesccmnewuser123Copilotjc-clarksubatoi
authored
Add page for disabling/restricting PRs (#59606)
Co-authored-by: moraesc <cmnewuser123@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
1 parent a36d334 commit 9e9a9a0

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Disabling pull requests
3+
intro: You may wish to modify pull request access for your repository if you want to restrict contributions, or disable them entirely.
4+
redirect_from:
5+
- /github/managing-your-work-on-github/managing-your-work-with-issues-and-pull-requests/disabling-pull-requests
6+
- /articles/disabling-pull-requests
7+
- /github/managing-your-work-on-github/disabling-pull-requests
8+
- /github/administering-a-repository/managing-repository-settings/disabling-pull-requests
9+
versions:
10+
feature: disable-restrict-prs
11+
topics:
12+
- Pull requests
13+
---
14+
{% data reusables.repositories.navigate-to-repo %}
15+
{% data reusables.repositories.sidebar-settings %}
16+
1. To disable pull requests entirely, under "Features", deselect **Pull requests**.
17+
18+
If you decide to enable pull requests again in the future, any pull requests that were previously added will be available.
19+
20+
1. To restrict pull requests to collaborators only, in the dropdown under "Pull requests" select **Collaborators only**.
21+
22+
In personal repositories, a collaborator is anyone who has been invited to the repository. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/repository-access-and-collaboration/permission-levels-for-a-personal-account-repository#collaborator-access-for-a-repository-owned-by-a-personal-account).
23+
24+
In organization repositories, a collaborator is a user who has been granted the write, maintain, or admin role for the repository. For more information about organization roles, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization#repository-roles-for-organizations).
25+
26+
{% ifversion fpt or ghec %}
27+
28+
> [!TIP]
29+
> Please contact us through the {% data variables.contact.contact_support_portal %} if you want to turn off pull requests because of abuse from strangers. {% data reusables.policies.abuse %}
30+
31+
{% endif %}

content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ topics:
99
- Repositories
1010
children:
1111
- /disabling-issues
12+
- /disabling-pull-requests
1213
- /disabling-projects-in-a-repository
1314
- /managing-github-actions-settings-for-a-repository
1415
- /enabling-or-disabling-github-discussions-for-a-repository
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: #21073
2+
# Disable/restrict pull requests for a repository
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>= 3.21'

0 commit comments

Comments
 (0)