-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add lock bot #2815
Add lock bot #2815
Conversation
BTW, there seems are some interesting bot for linting: |
Why do we need locking old issues? Even after closing users may leave useful comments for others. Speaking about pep8 bot, we already have configured CI linting job which tells contributors what should be fixed before PR will be approved. Lines 43 to 60 in 224b8b9
|
@StrikerRUS For some important issues, like feature requests, bug, we can exclude them to be auto locked. As for the bots, I want the "auto" methods, like auto format the codes and generate the documents, without we run some scripts or fix them one-by-one manually. |
@guolinke I see your point! And I absolutely agree with you that in some cases locking old issues is required to prevent misleading comments. Refer for example to #1369. However, some other issues can benefit from new comments, e.g. #1597. According to the present set of created labels, I think we should exclude
I remember we had some discussion about docs auto-generation and inconvenience for contributors some time ago: #1511. |
Refer to autopep8:
It seems will create a new PR for the formatting. Personally, I think auto-format the code in the original PR is better (new PR to contributors' repo is okay), but i don't know could it be supported or not. |
In case of new PR, we will consciously merge "bad" code, and for some time the repo will be in undesirable state. Also, I'm not sure that auto-fixes are better than manual ones. Sometimes they may be over-strict or strange, and we won't be able to review them, only propose fixes for fixes in one more PR. |
^ I agree with this perspective. Every merge to master should leave the repo in a better state that it was as of the previous commit. And I agree that I am ok with having a bot lock old issues though! We as admins can always manually re-open issues that are locked if necessary, and GitHub's linking via comments means we won't lose the flow of conversation someone can easily open a new issue and say "I am experiencing something that looks similar to issue #whatever". So to summarize, here is where I stand:
|
@StrikerRUS @jameslamb thanks, got it. Let us only enable lock bot for now. |
No description provided.