-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update coding style and add review workflow
- Loading branch information
Showing
5 changed files
with
175 additions
and
127 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,44 @@ | ||
name: Review | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
branches: | ||
- master | ||
|
||
jobs: | ||
code-style-review: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- | ||
name: work around permission issue | ||
run: | | ||
git config --global --add safe.directory /__w/prometheus_diameter_collector/prometheus_diameter_collector | ||
- | ||
name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- | ||
name: install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install rebar3 emacs erlang-mode | ||
- | ||
name: format | ||
run: rebar3 fmt | ||
- | ||
name: automated review | ||
uses: googleapis/code-suggester@v4 | ||
with: | ||
command: review | ||
pull_number: ${{ github.event.pull_request.number }} | ||
git_dir: '.' | ||
- | ||
name: check | ||
run: git diff --quiet --exit-code |
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
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
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
Oops, something went wrong.