Skip to content

Commit

Permalink
🤖 chore: Auto format and add i18n json files
Browse files Browse the repository at this point in the history
  • Loading branch information
lobehubbot committed Dec 15, 2023
1 parent 5235c97 commit ab5f909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/autoSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

0 comments on commit ab5f909

Please sign in to comment.