check-todos
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5# Brackets are used around characters so these don't show up in normal search.
6pattern='tod[o]!|FIXM[E]'
7result=$(git grep --no-color --ignore-case --line-number --extended-regexp -e $pattern -- ':(exclude).github/workflows/ci.yml' || true)
8echo "${result}"
9if [[ -n "${result}" ]]; then
10 exit 1
11fi