Skip to content

Commit 855ca2d

Browse files
committed
ci: check TODOs
1 parent 4de55ab commit 855ca2d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/check-todos.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Check for TODOs"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check-todos:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Scan for TODO strings
14+
run: |
15+
16+
if git grep -E "TODO" -- .; then
17+
echo "Error: Found TODOs in the codebase. Please resolve them or create issues."
18+
exit 1
19+
else
20+
echo "No TODOs found!"
21+
exit 0
22+
fi

0 commit comments

Comments
 (0)