diff options
Diffstat (limited to 'evergreen/todos_check.sh')
-rw-r--r-- | evergreen/todos_check.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/evergreen/todos_check.sh b/evergreen/todos_check.sh new file mode 100644 index 00000000000..44ec7837219 --- /dev/null +++ b/evergreen/todos_check.sh @@ -0,0 +1,25 @@ +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +. "$DIR/prelude.sh" + +cd src + +activate_venv + +set -o verbose +set -o errexit + +# Since `commit_message` is an evergreen expansion, we need a way to ensure we +# properly deal with any special characters that could cause issues (like "). To +# do this, we will write it out to a file, then read that file into a variable. +if [ "${is_commit_queue}" = "true" ]; then + cat >commit_message.txt <<END_OF_COMMIT_MSG +${commit_message} +END_OF_COMMIT_MSG + + commit_message_content=$(cat commit_message.txt) + rm commit_message.txt + + $python buildscripts/todo_check.py --commit-message "$commit_message_content" +else + $python buildscripts/todo_check.py --patch-build ${version_id} +fi |