Skip to content

Commit

Permalink
ci(java): suggest formatting fixes (#413)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/3348a50d-d142-45b9-a004-c327547d1133/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@b65ef07
  • Loading branch information
yoshi-automation committed Oct 14, 2020
1 parent 37da386 commit c9b34ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/formatting.yaml
@@ -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: '.'
5 changes: 3 additions & 2 deletions synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-firestore.git",
"sha": "5444fedc5f174151ad9c3267d6f1ec2a0d1eadf3"
"sha": "37da386875d1b65121e8a9a92b1a000537f07625"
}
},
{
Expand All @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "487eba79f8260e34205d8ceb1ebcc65685085e19"
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
}
}
],
Expand Down Expand Up @@ -63,6 +63,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 c9b34ed

Please sign in to comment.