Repository navigation
[ci] prevent lock-threads from locking issues with label 'feature request' - #6047
Conversation
|
Thanks @jmoralez ! I'm gonna merge this and test by manually triggering a run. Will report back here. |
|
β looks like this did fix the text wrapping on the comment! example: #5448 (comment)
|
|
β
it's not locking issues with label I triggered 4 runs tonight that locked 400 issues/PRs. 0 issues with So I think this is working! I'll stop triggering runs for now. This will run once a week (every Wednesday at midnight UTC) and close up to 100 issues. I'm not exactly sure how many it still needs to work through. Hopefully in a few weeks it'll be caught up, and then the runs will only be closing a few issues (and therefore only generating a few notifications) each time. |
|
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |

#6037 reintroduced a bot for locking discussion on long-inactive closed PRs and issues, to encourage discussions to stay in highly-visible places.
This PR fixes two bugs in that configuration:
feature requestare not lockedText wrapping
What the bot currently produces:
What I want it to look like:
Notice that there isn't an unnecessary line break after the link to the issues page. That'll make the text look a bit better when screens are resized.
To learn how switching from
|to>in the configuration achieves that, see https://yaml-multiline.info/.feature requestlabelAs described in #6037 (comment), the bot is locking some issues with label
feature request, e.g. #3200 (comment).Looks to me like
lock-threadsrequires that labels passed into itsexclude-any-issue-labelsconfiguration be double-quoted if they contain spaces.That's because that feature works by directly appending a
-label:search body using GitHub's code search API (docs):https://github.com/dessant/lock-threads/blob/be8aa5be94131386884a6da4189effda9b14aa21/src/index.js#L143-L146
I tested this in the GitHub UI, and can see the effect.
https://github.com/microsoft/LightGBM/issues?q=is%3Aissue+is%3Aclosed+-label%3Afeature+request
With quoting around that label, the search matches the expected issues.
https://github.com/microsoft/LightGBM/issues?q=is%3Aissue+is%3Aclosed+-label%3A%22feature+request%22
Thanks to this comment from @alessbell for the hint: dessant/lock-threads#40 (comment).
Notes for Reviewers
I've manually unlocked all of the closed issues with label
feature requestthat were incorrectly locked after merging #6037.