Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
ci(java): suggest formatting fixes
Browse files Browse the repository at this point in the history
GitHub action config to run the java formatter and suggest inline fixes on the pull request.

This was tested in java-asset: [example PR](#392).

Source-Author: Jeff Ching <chingor@google.com>
Source-Date: Tue Oct 13 09:04:08 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: b65ef07d99946d23e900ef2cc490274a16edd336
Source-Link: googleapis/synthtool@b65ef07
  • Loading branch information
yoshi-automation committed Oct 13, 2020
1 parent 52914a8 commit bf37180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
java-version: 11
- run: "mvn com.coveo:fmt-maven-plugin:format"
- uses: googleapis/code-suggester@v1.8.0 # takes the changes from git directory
- uses: googleapis/code-suggester@v1.8.0
with:
command: review
pull_number: ${{ github.event.pull_request.number }}
Expand Down
5 changes: 3 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-asset.git",
"sha": "003e7019a6775ee68ffd1ed169ed12bee3ba4448"
"sha": "52914a81247ea37afdd2bb8939f019559af28c08"
}
},
{
Expand Down Expand Up @@ -59,7 +59,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b"
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
}
}
],
Expand Down Expand Up @@ -130,6 +130,7 @@
".github/trusted-contribution.yml",
".github/workflows/auto-release.yaml",
".github/workflows/ci.yaml",
".github/workflows/formatting.yaml",
".github/workflows/samples.yaml",
".kokoro/build.bat",
".kokoro/build.sh",
Expand Down

0 comments on commit bf37180

Please sign in to comment.