Skip to content

Commit 858f153

Browse files
authored
chore(ci): add lint tasks to auto-apply-fixes (#2911)
1 parent 28e05f3 commit 858f153

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Start the Nx Cloud CI Run
5353
run: |
54-
yarn dlx nx-cloud start-ci-run --auto-apply-fixes="*sync*" --distribute-on=".nx/workflows/linux-distribution-config.yaml" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV,NX_VERBOSE_LOGGING,JAVA_VERSION"
54+
yarn dlx nx-cloud start-ci-run --auto-apply-fixes="*sync*,*lint*" --distribute-on=".nx/workflows/linux-distribution-config.yaml" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV,NX_VERBOSE_LOGGING,JAVA_VERSION"
5555
5656
- name: Gradle Wrapper Validation
5757
uses: gradle/actions/wrapper-validation@v3

CLAUDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@
3131
- If the user needs help with an Nx configuration or project graph error, use the `nx_workspace` tool to get any errors
3232

3333
<!-- nx configuration end-->
34+
35+
## Self-Healing CI
36+
37+
Predefined fix:
38+
If a failed task id contains ":lint", fix it by running linting on the project where it failed with the `--fix` flag. Example: `npx nx run nx-mcp-server:lint --fix` where "nx-mcp-server" is the project the task failed on.

0 commit comments

Comments
 (0)