Skip to content

Commit c22700e

Browse files
authored
ci: add inline lint suggestion (#494)
1 parent a974154 commit c22700e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
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 # takes the changes from git directory
22+
with:
23+
command: review
24+
pull_number: ${{ github.event.pull_request.number }}
25+
git_dir: '.'

0 commit comments

Comments
 (0)