eslint / eslint/eslint-github-bot

Change Request: Automatically close PRs if issue is not accepted or assigned to them

Open
#327 2 comments 0 reactions 1 assignee Claimed by @DMartens View on GitHub
accepted enhancement
Dominant language
JavaScript
Stars
70
Forks
24
Avg merge
1d 18h
Merged PRs (30d)
11

Description

### What problem do you want to solve?

Currently the repositories receive AI-assisted PRs which do not follow our [PR guidelines](https://eslint.org/docs/latest/contribute/work-on-issue), which state that the issue must have the `accepted` label and the issue is assigned to them.
It creates unnecessary maintenance burden to close the PRs manually and may make assigned developer unsure whether they can raise a PR.

### What do you think is the correct solution?

Automatically close the PR if either the issue is not accepted yet or another user is assigned.
This could either be an additional plugin or integrated in the existing "issue-pr-link" plugin.
The advantage of extending the existing "issue-pr-link" is that in the case of a PR close, we would not create a comment on the issue that "this issue is being addressed in pull request #...".

### Participation

- [x] I am willing to submit a pull request for this change.

### AI acknowledgment

- [x] I did not use AI to generate this issue report.
- [ ] (If the above is not checked) I have reviewed the AI-generated content before submitting.

### Additional comments

Maybe the issue message could be "suppressed" if it is possible to delay a plugin or specify the exact order they are run (and they are not run in parallel), as then the "issue-pr-link" could check whether the PR was closed before commenting.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.