diff --git a/content/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository.md b/content/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository.md index a0ace6073433..f9addc606b89 100644 --- a/content/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository.md +++ b/content/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository.md @@ -1,6 +1,6 @@ --- title: Limiting interactions in your repository -intro: You can temporarily enforce a period of limited activity for certain users on a public repository. +intro: You can temporarily enforce a period of limited activity for certain users on a public repository, and set a maximum number of concurrent open pull requests for non-collaborators. redirect_from: - /articles/limiting-interactions-with-your-repository - /articles/limiting-interactions-in-your-repository @@ -8,7 +8,7 @@ redirect_from: versions: fpt: '*' ghec: '*' -permissions: 'People with admin permissions to a repository, and organization moderators, can temporarily limit interactions in that repository.' +permissions: 'People with admin permissions to a repository, and organization moderators, can temporarily limit interactions in that repository and set a maximum number of concurrent open pull requests for non-collaborators.' shortTitle: Limit interactions in repo category: - Moderate comments and conversations @@ -31,6 +31,24 @@ You can also enable activity limitations on all repositories owned by your perso 1. In the sidebar, select **{% octicon "comment-discussion" aria-hidden="true" aria-label="comment-discussion" %} Moderation options**, then click **Interaction limits**. {% data reusables.community.set-interaction-limit %} +## Limiting concurrent open pull requests for non-collaborators + +You can set a maximum number of pull requests that a non-collaborator can have open at the same time in your repository. When a non-collaborator reaches the limit, they must close or get an existing pull request merged before they can open a new one. + +This setting helps maintainers manage contribution volume by preventing users from opening an excessive number of pull requests, which can overwhelm review queues and trigger unnecessary CI runs. The limit only applies to non-collaborators — users with collaborator access to the repository are not affected. + +### Adding trusted contributors to the allowlist + +You can add trusted contributors to an allowlist so they can bypass the pull request limit without being granted full collaborator access. This is useful for regular external contributors who need to open multiple pull requests but don't require the additional permissions that come with collaborator access, such as push access or label management. + +### Configuring the pull request limit + +{% data reusables.repositories.navigate-to-repo %} +{% data reusables.repositories.sidebar-settings %} +1. In the sidebar, select **{% octicon "comment-discussion" aria-hidden="true" aria-label="comment-discussion" %} Moderation options**, then click **Interaction limits**. +1. Under "Pull request limits", select the maximum number of concurrent open pull requests allowed for non-collaborators. +1. Optionally, to allow specific users to bypass the limit, under "Allowlist", search for and select the users you want to add. + ## Further reading * [AUTOTITLE](/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam)