Use suggest-changes@v2 (#22667)

Use suggest-changes@v2
(https://github.com/parkerbxyz/suggest-changes/issues/36#issuecomment-2447605058)
to post suggested changes as comments instead of requested changes to
streamline the review process.

- Also updated the script to `set +e` to ignore exit code only for the
linter run. So that if there is errors in dependency installation we can
still get signals.
This commit is contained in:
Justin Chu 2024-11-01 13:13:04 -07:00 committed by GitHub
parent ba0bb43b00
commit f7cabf6d4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,12 +41,12 @@ jobs:
- name: Install dependencies and run lintrunner on all files
run: |
set -e
python -m pip install --user -r requirements-dev.txt
python -m pip install --user lintrunner lintrunner-adapters
python -m pip install --user lintrunner lintrunner-adapters
lintrunner init
set +e
lintrunner f --all-files -v
exit 0
- uses: parkerbxyz/suggest-changes@v1
- uses: parkerbxyz/suggest-changes@v2
with:
comment: 'You can commit the suggested changes from lintrunner.'