-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use action-suggester instead of a patched reviewdog #433
base: master
Are you sure you want to change the base?
Conversation
Remove clang-format from the "push" event. Annotations do not support suggestions, so there is no sense to apply clang-format directly to commits. Use action-suggester instead of a patched reviewdog. JIRA: CI-123
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets assume checking formatting on direct-commit is a non-issue.
Suggesting some small enhancements to implement.
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git diff -U0 HEAD^ | clang-format-diff-10 -p1 | /tmp/reviewdog -f=diff -f.diff.strip=0 -name=clang-format-pr -reporter=github-pr-review -fail-on-error | ||
- run: git diff -U0 HEAD^ | clang-format-diff-10 -p1 | patch -p0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- please name this step
- IMHO using
clang-format-diff -i
would be more straightforward instead of pipe'ing it topatch
- maybe comment how it works (we won't be parsing the tool output, the changes are applied to the code and analyzed in the next step)
@@ -15,32 +15,6 @@ on: | |||
workflow_call: # reusable workflow - the same jobs in submodules | |||
|
|||
jobs: | |||
clang-format: | |||
if: github.event_name == 'push' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed only job run on push, You can adjust the global on
properties and remove if
in the jobs.
Remove clang-format from the "push" event. Annotations
do not support suggestions, so there is no sense to apply
clang-format directly to commits.
Use action-suggester instead of a patched reviewdog.
poc phoenix-rtos/phoenix-rtos-tests#116
Types of changes
How Has This Been Tested?
Checklist:
Special treatment