Skip to content

Commit

Permalink
infra: improve CI preflight warning message (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Aug 9, 2024
1 parent 354ff4a commit 7fa2f99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/commentCodeGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ export async function script(
issue_number: context.issue.number,
});

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 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)
Expand Down

0 comments on commit 7fa2f99

Please sign in to comment.