1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Plugin Repo: Prevent faulty packages from generating commits on each check

This commit is contained in:
Laurent Cozic
2021-01-23 16:18:59 +00:00
parent 63559ac8b9
commit 0cbecabff2
6 changed files with 107 additions and 8 deletions

View File

@ -0,0 +1,11 @@
import { ImportErrors } from './types';
export default function(previousErrors: ImportErrors, newErrors: ImportErrors): boolean {
if (Object.keys(previousErrors).length !== Object.keys(newErrors).length) return true;
for (const packageName of Object.keys(previousErrors)) {
if (newErrors[packageName] !== previousErrors[packageName]) return true;
}
return false;
}