Skip to content

Commit f57aedc

Browse files
authored
Prettier comment (tensorflow#6928)
Just making our CI workflow print a message with a suggestion for how to fix linter issues. See text on previous CI run, before actually fixing the issues I introduced: https://github.com/tensorflow/tensorboard/actions/runs/11376055312/job/31647872238
1 parent 109771f commit f57aedc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ jobs:
316316
with:
317317
node-version: 16
318318
- run: yarn install --ignore-engines
319-
# You can run `yarn fix-lint` to fix all Prettier complaints.
320-
- run: yarn lint
319+
# You can run `yarn fix-lint` to fix all Prettier complaints, although at this point this will try to fix too many things.
320+
# To fix only the files changed in this PR, see the command below.
321+
- run: yarn lint || (( echo 'Try running `$ prettier --write $(git diff-tree --no-commit-id --name-only <latest commit> <parent branch commit> -r)`.' && false ))
321322
# Make sure no tests are skipped with "focused" tests.
322323
- run: |
323324
! git grep -E 'f(it|describe)\(' 'tensorboard/*_test.ts'

0 commit comments

Comments
 (0)