Skip to content

[RFC]: add a GitHub workflow which prevents contributors opening dozens of PRs #43

@Planeshifter

Description

@Planeshifter

This PR proposes adding a GitHub workflow which "rate limits" contributors racing to open up dozens of PRs.

Namely, on an opened pull request,

  • Check whether the pull request links to an open issue.
  • If yes, check whether the issue has a "Good first issue" label. If no, exit.
  • If yes, check whether the contributor has opened other PRs linked to good first issues. If no, exit.
  • If yes, check whether the number of good first issue PRs exceeds a threshold. If no, exit.
  • If yes, post a comment to the most recent PR saying "Hey, we noticed that you've been opening a number of PRs addressing good first issues. Thanks for your interest and enthusiasm. Now that you've made a few contributions, we suggest no longer working on good first issues and instead working on more involved tasks. Not only does this ensure that other new contributors can work on things, but it ensures you can spend your time on more challenging problems." <= or something to this effect.

Time estimate without AI: 2h
Time estimate with AI: 1h

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: <2hrsTask which should take less than 2 hours.❌ No AINot allowed to use AI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions