diff options
| author | DivisionByZero <[email protected]> | 2023-02-18 01:07:09 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-18 01:07:09 +0100 |
| commit | c8c0ca21872e38b97e12a4ee5cd1132fe8a438ce (patch) | |
| tree | c3f626bd87738a3657cd0fbf1b4b19596cb648ad /.github | |
| parent | 2e2db6cffbaab669f8ff363b07c92314513702e0 (diff) | |
| download | faker-c8c0ca21872e38b97e12a4ee5cd1132fe8a438ce.tar.xz faker-c8c0ca21872e38b97e12a4ee5cd1132fe8a438ce.zip | |
infra: add preflight script (#1846)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/pull_request_template.md | 2 | ||||
| -rw-r--r-- | .github/workflows/commentCodeGeneration.ts | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 9c07d984..8ec56cca 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,5 @@ +<!-- Please run `pnpm run preflight` before opening a Pull Request to ensure that your code fulfills the minimal requirements for our project. --> + <!-- Please first read https://github.com/faker-js/faker/blob/next/CONTRIBUTING.md --> <!-- Help us by writing a correct PR title following this guide: https://github.com/faker-js/faker/blob/next/CONTRIBUTING.md#committing --> diff --git a/.github/workflows/commentCodeGeneration.ts b/.github/workflows/commentCodeGeneration.ts index 74a80927..f456e563 100644 --- a/.github/workflows/commentCodeGeneration.ts +++ b/.github/workflows/commentCodeGeneration.ts @@ -21,7 +21,7 @@ module.exports = async ( issue_number: context.issue.number, }); - const body = `Uncommitted changes were detected after runnning <code>generate:*</code> commands.\nPlease run <code>pnpm run generate:locales</code>, <code>pnpm run generate:api-docs</code>, and <code>pnpm run test -u</code> to generate/update the related files, and commit them.`; + const body = `Uncommitted changes were detected after runnning <code>generate:*</code> commands.\nPlease run <code>pnpm run preflight</code> to generate/update the related files, and commit them.`; const botComment = comments.find( (comment) => comment.user?.type === 'Bot' && comment.body?.includes(body) |
