Skip to content

Commit

Permalink
style checker: Update for CheriBSD
Browse files Browse the repository at this point in the history
- Run for PRs against dev instead of main.

- Make the check always succeed but still add annotations.

- Check the style of the total diff instead of each patch on the branch.
  • Loading branch information
bsdjhb committed Mar 27, 2024
1 parent 21e7980 commit cfbf83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Style Checker

on:
pull_request: # maybe pull_request_target
branches: [ main ]
branches: [ dev ]
types: [ opened, reopened, edited, synchronize ]

permissions:
Expand All @@ -31,4 +31,4 @@ jobs:
- name: Run checker
run: |
sha=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
tools/build/checkstyle9.pl --github ${sha}..${{ github.event.pull_request.head.sha }}
git diff ${sha}..${{ github.event.pull_request.head.sha }} | tools/build/checkstyle9.pl --github - || true

0 comments on commit cfbf83a

Please sign in to comment.