Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-close should also close appropriate PRs #103

Open
ilyavolodin opened this issue Feb 1, 2019 · 3 comments
Open

Auto-close should also close appropriate PRs #103

ilyavolodin opened this issue Feb 1, 2019 · 3 comments

Comments

@ilyavolodin
Copy link
Member

Currently auto-close only closes issue, however, if the issue was created to just be a front for the PR, that leaves PR orphan and make it harder to track. Examples are here: eslint/eslint#11184 and eslint/eslint#11186

@platinumazure
Copy link
Member

What about if a PR is created to resolve multiple issues?

Could this cause more problems for us if an issue and PR are closed simultaneously, but then we decide to reopen the issue manually? We might forget the PR, and unlike what happened today, the PR would be in a closed state instead of open and would probably be forgotten about.

I think it might be better to instead have a scheduled task that looks at open PRs, and if all would-be-fixed/would-be-closed issues (so not just references to other issues) are closed, then the PR is closed. And ideally, the bot would require that issues are closed for a couple of days, to avoid those cases where the closure wasn't intended (i.e., if an issue is closed for a couple of days, it probably won't be reopened). Just my two cents.

@nzakas
Copy link
Member

nzakas commented Feb 4, 2019 via email

@ilyavolodin
Copy link
Member Author

Sure, leaving a comment is fine by me. As long as there's some indication that the issue has been closed due to inactivity, it would help triage PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants