Skip to content

Commit 68d2967

Browse files
bors[bot]chitoyuu
andauthored
Merge #1027
1027: Fix TODO detection in CI r=chitoyuu a=chitoyuu For some reason, ripgrep cannot infer the directory to search in on CI like it can when ran locally. Passing the working directory explicitly fixes this. Co-authored-by: Chitose Yuuzaki <chitoyuu@potatoes.gay>
2 parents 9233188 + a0ec960 commit 68d2967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/detect-todo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fi
6767

6868
# Actual run
6969

70-
rg -iTh -Tsh --pcre2 "$REGEX"
70+
rg -iTh -Tsh --pcre2 "$REGEX" "$(pwd)"
7171
if [[ $? -eq 0 ]]
7272
then
7373
echo 'Found TODO comments without issue numbers.'

0 commit comments

Comments
 (0)