[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:
ryota-murakami
2021-07-15 19:09:24 +09:00
parent d5de45820a
commit a43aab9207
+4
View File
@@ -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.