-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate PR suggestions when formatting is wrong
This should make it much easier to do drive-by changes in the GitHub editor: the comment should contain a diff that can be committed directly from the online editor.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,14 +21,21 @@ jobs: | |
run: | | ||
sudo apt update | ||
sudo apt install gettext yapf3 | ||
curl -fsSL https://dprint.dev/install.sh | sh | ||
echo "/home/runner/.dprint/bin" >> $GITHUB_PATH | ||
- name: Install nightly rustfmt | ||
run: | | ||
rustup default nightly | ||
rustup component add rustfmt | ||
- name: Check formatting | ||
uses: dprint/[email protected] | ||
- name: Reformat | ||
run: dprint fmt | ||
|
||
- uses: parkerbxyz/suggest-changes@v1 | ||
|
||
- name: Check if there were any changes | ||
run: git diff --exit-code | ||
|
||
typos: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters