Skip to content

Commit aad6308

Browse files
committed
Add check for pull requests (GitHub action)
Signed-off-by: Stefan Weil <[email protected]>
1 parent 7851f8a commit aad6308

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr_check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Check pull requests.
2+
3+
name: Check pull request
4+
5+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
6+
on:
7+
# Trigger workflow on pull request.
8+
pull_request:
9+
# branches: [ ci ]
10+
11+
jobs:
12+
check_pull_request:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Show whitespace issues.
18+
run: git log --check ${{github.event.pull_request.base.sha}^}...
19+
- name: Check for whitespace issues.
20+
run: git log --check ${{github.event.pull_request.base.sha}}... | grep "^[^:+]*:[0-9]*:"
21+
# TODO: Add more checks here (codespell, ...).

0 commit comments

Comments
 (0)