Repository navigation
Dim more PRs opened by bots in dim-bots - #5512
Merged
Merged
Conversation
cheap-glitch
commented
Mar 16, 2022
| '.opened-by [href*="author%3Aapp%2F"]', | ||
| '.labels [href$="label%3Abot"]', | ||
| ]; | ||
| const prSelectors = botNames.map(bot => `.opened-by [title="pull requests opened by ${bot}"]`); |
Contributor
Author
There was a problem hiding this comment.
This allows re-using the list of bot names to also hide potential PRs opened by them.
I'm guessing not all of them can do that, but their usernames are reserved anyway so we don't risk hiding legitimate PRs.
Comment on lines
+25
to
+28
| prSelectors.push( | ||
| '.opened-by [href*="author%3Aapp%2F"]', // Search query `is:pr+author:app/*` | ||
| '.labels [href$="label%3Abot"]', // PR tagged with `bot` label | ||
| ); |
Contributor
Author
There was a problem hiding this comment.
Kept the more "generic" selectors because they allow hiding Dependabot, Renovate and maybe others without adding them to the list of names.
| '.opened-by [href*="author%3Aapp%2F"]', // Search query `is:pr+author:app/*` | ||
| '.labels [href$="label%3Abot"]', // PR tagged with `bot` label | ||
| ); | ||
| const prSelector = prSelectors.join(','); |
Contributor
Author
There was a problem hiding this comment.
Not really needed, but added for consistency with commitSelector.
fregante
approved these changes
Mar 16, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dim more bots PRs + refactor a bit and add an explanatory comment on each extra selector
Test URLs
renovateanddependabotdependabotandsnyk-botrenovateborsScreenshot
Before
After