From ae86eeb42ebd22884f9f63eac1471114394a0ef6 Mon Sep 17 00:00:00 2001 From: James Brunton Date: Tue, 14 Apr 2026 09:41:45 +0100 Subject: [PATCH] Add comments in the console to tell the user how to fix their issues in case the PR comment fails --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9195526326..9d2ae14a02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,7 +138,19 @@ jobs: - name: Fail if Java formatting issues found if: steps.spotless-check.outcome == 'failure' - run: exit 1 + run: | + echo "============================================" + echo " Java Formatting Check Failed" + echo "============================================" + echo "" + echo "Your code has formatting issues." + echo "Run the following command to fix them:" + echo "" + echo " ./gradlew spotlessApply" + echo "" + echo "Then commit and push the changes." + echo "============================================" + exit 1 - name: Build with Gradle and spring security ${{ matrix.spring-security }} run: ./gradlew build -PnoSpotless @@ -307,7 +319,19 @@ jobs: } - name: Fail if TypeScript formatting issues found if: steps.prettier-check.outcome == 'failure' - run: exit 1 + run: | + echo "============================================" + echo " TypeScript Formatting Check Failed" + echo "============================================" + echo "" + echo "Your code has formatting issues." + echo "Run the following command to fix them:" + echo "" + echo " cd frontend && npm run fix" + echo "" + echo "Then commit and push the changes." + echo "============================================" + exit 1 - name: Type-check frontend run: cd frontend && npm run prep && npm run typecheck:all - name: Lint frontend