mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[DevTools] Disable sizeBot on DevTools Rull Request (#21885)
* [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. * Revert "[DevTools] Disable sizeBot on DevTools Rull Request" This reverts commit a43aab9207d4abc85b60c22b21a374fc54b1c6ea. * check whether devtools package file only committed
This commit is contained in:
@@ -113,6 +113,17 @@ function row(result) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Disable sizeBot in a Devtools Pull Request. Because that doesn't affect production bundle size.
|
||||
const commitFiles = [
|
||||
...danger.git.created_files,
|
||||
...danger.git.deleted_files,
|
||||
...danger.git.modified_files,
|
||||
];
|
||||
if (
|
||||
commitFiles.every(filename => filename.includes('packages/react-devtools'))
|
||||
)
|
||||
return;
|
||||
|
||||
const resultsMap = new Map();
|
||||
|
||||
// Find all the head (current) artifacts paths.
|
||||
|
||||
Reference in New Issue
Block a user