forked from googleapis/java-bigtable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(java): suggest formatting fixes (googleapis#462)
GitHub action config to run the java formatter and suggest inline fixes on the pull request. This was tested in java-asset: [example PR](googleapis/java-asset#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
1 parent
a1cf86e
commit c18571b
Showing
2 changed files
with
28 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: | ||
pull_request_target: | ||
types: [opened, synchronize] | ||
branches: | ||
- master | ||
name: format | ||
jobs: | ||
format-code: | ||
runs-on: ubuntu-latest | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- run: "mvn com.coveo:fmt-maven-plugin:format" | ||
- uses: googleapis/code-suggester@v1.8.0 | ||
with: | ||
command: review | ||
pull_number: ${{ github.event.pull_request.number }} | ||
git_dir: '.' |
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