From 7fa2f99dd66c3c3b59298729d838cc8794a2d030 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 9 Aug 2024 20:47:17 +0200 Subject: infra: improve CI preflight warning message (#3039) --- .github/workflows/commentCodeGeneration.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.github/workflows/commentCodeGeneration.ts') diff --git a/.github/workflows/commentCodeGeneration.ts b/.github/workflows/commentCodeGeneration.ts index ed5258d5..96a520d1 100644 --- a/.github/workflows/commentCodeGeneration.ts +++ b/.github/workflows/commentCodeGeneration.ts @@ -21,7 +21,14 @@ export async function script( issue_number: context.issue.number, }); - const body = `Uncommitted changes were detected after runnning generate:* commands.\nPlease run pnpm run preflight to generate/update the related files, and commit them.`; + const body = `GitHub Actions has found some problems running the preflight checks. + +Please make sure to: + +- run \`pnpm run preflight\` locally +- fix all issues until the command completes without errors +- commit and push the changes +`; const botComment = comments.find( (comment) => comment.user?.type === 'Bot' && comment.body?.includes(body) -- cgit v1.2.3