Skip to content

Commit f4f68a4

Browse files
ci(java): suggest formatting fixes (#1143)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/e9bef6be-6e2b-40d5-8087-bacda8836382/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@b65ef07
1 parent 0c1d58b commit f4f68a4

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/formatting.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
pull_request_target:
3+
types: [opened, synchronize]
4+
branches:
5+
- master
6+
name: format
7+
jobs:
8+
format-code:
9+
runs-on: ubuntu-latest
10+
env:
11+
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{github.event.pull_request.head.ref}}
16+
repository: ${{github.event.pull_request.head.repo.full_name}}
17+
- uses: actions/setup-java@v1
18+
with:
19+
java-version: 11
20+
- run: "mvn com.coveo:fmt-maven-plugin:format"
21+
- uses: googleapis/code-suggester@v1.8.0
22+
with:
23+
command: review
24+
pull_number: ${{ github.event.pull_request.number }}
25+
git_dir: '.'

synth.metadata

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/google-http-java-client.git",
7-
"sha": "fe73acdd345ae3a2d7f214bec0058a6c0a122a7d"
7+
"sha": "0c1d58b14a2b38cb2bce8d17c4b547261ab17739"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b"
14+
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
1515
}
1616
}
1717
],
@@ -26,6 +26,7 @@
2626
".github/trusted-contribution.yml",
2727
".github/workflows/auto-release.yaml",
2828
".github/workflows/ci.yaml",
29+
".github/workflows/formatting.yaml",
2930
".github/workflows/samples.yaml",
3031
".kokoro/build.bat",
3132
".kokoro/build.sh",

0 commit comments

Comments
 (0)