File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Forbid TODO
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, synchronize, reopened]
6
+ merge_group :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ forbid-todo :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Forbid TODO
15
+ run : ./scripts/forbid-todo.sh
Original file line number Diff line number Diff line change 72
72
name : dumps
73
73
path : ${{ env.VSCODE_CRASH_DIR }}
74
74
if : failure()
75
- - name : Forbid TODOs
76
- run : ./scripts/forbid-todo.sh
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euo pipefail
4
4
5
5
# Find the string 'TODO' in all files tracked by git, excluding
6
6
# this file
7
- TODOS_FOUND=$( git grep --color=always -nw TODO -- ' :!scripts/forbid-todo.sh' || true)
7
+ TODOS_FOUND=$( git grep --color=always -nw TODO -- ' :!scripts/forbid-todo.sh' ' :!.github/workflows/forbid-todo.yml ' || true)
8
8
9
9
if [ -n " $TODOS_FOUND " ]; then
10
10
printf " \e[1;31mERROR: \e[0mTODOs found in codebase:\n"
You can’t perform that action at this time.
0 commit comments