Skip to content

Add a GitHub Action to enforce a maximum of two open PRs per new contributor #603

Description

@tarone-saloni

Currently, there is no automated way to enforce the limit on the number of open pull requests from new contributors.

It would be helpful to add a GitHub Action that automatically checks how many open PRs a contributor has. If a new contributor opens more than two pull requests at the same time, any additional PR should be automatically closed with a friendly comment explaining the project's contribution policy.

This would:
-Automatically enforce the contribution guidelines.
-Reduce manual work for maintainers.
-Encourage contributors to wait for their existing PRs to be reviewed and merged before opening new ones.
-Keep the review queue more manageable.

Expected behavior

  • New contributors can have a maximum of 2 open pull requests.
  • If a third (or subsequent) PR is opened while the previous two are still open, the GitHub Action should:
    - Automatically close the new PR.
    -Post a comment explaining why it was closed and ask the contributor to reopen or submit it after one of their existing PRs has been merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions