Skip to content

Commit 8870955

Browse files
committed
CI: Enable static code analysis.
1 parent d001748 commit 8870955

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/static.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Static Analysis
22

33
on:
4-
workflow_dispatch:
4+
pull_request:
55

66
jobs:
77
clang-tidy:
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout Pull Request
1212
uses: actions/checkout@v3
1313
with:
14-
ref: ${{ github.event.pull_request.head.sha }}
14+
fetch-depth: 2
1515
- name: Setup clang-tidy
1616
run: |
1717
apt-get update && apt-get install -y --no-install-recommends clang-format clang-tidy
@@ -30,7 +30,7 @@ jobs:
3030
clang_tidy_fixes: fixes.yml
3131
# Optionally set to true if you want the Action to request
3232
# changes in case warnings are found
33-
request_changes: true
33+
request_changes: false
3434
# Optionally set the number of comments per review
3535
# to avoid GitHub API timeouts for heavily loaded
3636
# pull requests

0 commit comments

Comments
 (0)