We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e7a42 commit b4adecfCopy full SHA for b4adecf
.github/workflows/ci.yml
@@ -23,3 +23,10 @@ jobs:
23
- uses: actions/checkout@v3
24
- uses: moonrepo/setup-rust@v1
25
- run: cargo test --all
26
+
27
+ check-todos:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: actions/checkout@v3
31
+ - name: Check for todos
32
+ run: ./scripts/show-todos.sh
scripts/show-todos.sh
@@ -0,0 +1,11 @@
1
+LINEAR_ISSUE=$(git rev-parse --abbrev-ref HEAD | grep -oP '^cod-(\d+)')
2
3
+if [ "$LINEAR_ISSUE" = "" ]; then
4
+ echo "No Linear Issue found, skipping"
5
6
+ exit 0
7
+fi
8
9
+echo "Searching todos for $LINEAR_ISSUE"
10
11
+grep "TODO($LINEAR_ISSUE)" . -Rni --color --exclude-dir=".git"
0 commit comments