From 21e945f482fe46b2748b5243bdedbcdf86f44895 Mon Sep 17 00:00:00 2001 From: Thomas Bray <87775189+MTG-Thomas@users.noreply.github.com> Date: Thu, 21 May 2026 12:21:28 -0400 Subject: [PATCH] Add tickgit TODO guard --- .github/tickgit-baseline.csv | 1 + .github/workflows/tickgit-todo-guard.yml | 31 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/tickgit-baseline.csv create mode 100644 .github/workflows/tickgit-todo-guard.yml diff --git a/.github/tickgit-baseline.csv b/.github/tickgit-baseline.csv new file mode 100644 index 0000000..56a882a --- /dev/null +++ b/.github/tickgit-baseline.csv @@ -0,0 +1 @@ +text,file_path,start_line,start_position,end_line,end_position,author,author_email,author_sha,author_time diff --git a/.github/workflows/tickgit-todo-guard.yml b/.github/workflows/tickgit-todo-guard.yml new file mode 100644 index 0000000..8963291 --- /dev/null +++ b/.github/workflows/tickgit-todo-guard.yml @@ -0,0 +1,31 @@ +name: tickgit TODO guard + +on: + pull_request: + types: [opened, synchronize, reopened] + schedule: + - cron: "07 14 * * 1-5" + workflow_dispatch: + +concurrency: + group: tickgit-todo-guard-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + todo-guard: + name: Detect new TODO comments + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + persist-credentials: false + - uses: MTG-Thomas/tickgit@c592be8853f724966909b8a5fde2c550b2e74892 # v0.0.17 + with: + baseline-file: .github/tickgit-baseline.csv + fail-on-new: "true" + match-phrases: TODO,FIXME,HACK + ignore-paths: .venv,.venv.linux,.venv.backup,venv,env,ENV,__pycache__,dist,build,_site,node_modules