diff --git a/scripts/autoSubmit.ts b/scripts/autoSubmit.ts index e1000fc2f..2db5fbcb6 100644 --- a/scripts/autoSubmit.ts +++ b/scripts/autoSubmit.ts @@ -8,7 +8,7 @@ import { resolve } from 'node:path'; import { formatAgentJSON } from './check'; import { agentsDir, githubHomepage } from './const'; -import {checkHeader, getLocaleAgentFileName, writeJSON} from './utils'; +import { checkHeader, getLocaleAgentFileName, writeJSON } from './utils'; const GENERATE_LABEL = '🤖 Agent PR'; const SUCCESS_LABEL = '✅ Auto Check Pass'; diff --git a/scripts/utils.ts b/scripts/utils.ts index 6391e6ae7..534f20462 100644 --- a/scripts/utils.ts +++ b/scripts/utils.ts @@ -64,10 +64,10 @@ export const checkHeader = (line: string) => { '### description', '### tags', '### locale', - ] + ]; let check = false; header.forEach((item) => { if (line.startsWith(item)) check = true; - }) + }); return check; -} +};