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

Commit c03b3b1

Browse files
ci(java): suggest formatting fixes (#34)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/a826dcfa-9562-4e43-bd02-8453c8ee88ff/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@b65ef07
1 parent 3faa3a3 commit c03b3b1

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,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-video-transcoder.git",
7-
"sha": "be02ff8550b0304535befd329ea04884ee6f1c0b"
7+
"sha": "3faa3a3723de1b8623e380d854d96bd124dddc2e"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b"
22+
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
2323
}
2424
}
2525
],
@@ -45,6 +45,7 @@
4545
".github/trusted-contribution.yml",
4646
".github/workflows/auto-release.yaml",
4747
".github/workflows/ci.yaml",
48+
".github/workflows/formatting.yaml",
4849
".github/workflows/samples.yaml",
4950
".kokoro/build.bat",
5051
".kokoro/build.sh",

0 commit comments

Comments
 (0)