mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[DevTools] Disable sizeBot on DevTools Rull Request
Because DevTools code doesn't affect production bundle size. Meaningless sizeBot comment give us frastration within Pull Request discussion.
This commit is contained in:
@@ -113,6 +113,10 @@ function row(result) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Disable sizeBot in a Devtools PR like bellow title. Because that doesn't affect production bundle size.
|
||||
// [Fix DevTools console announcement being suppressed by Fast Refresh #21864](https://github.com/facebook/react/pull/21864)
|
||||
if (new RegExp('devtools?', 'i').test(danger.github.pr.title)) return;
|
||||
|
||||
const resultsMap = new Map();
|
||||
|
||||
// Find all the head (current) artifacts paths.
|
||||
|
||||
Reference in New Issue
Block a user