From 55534b86424f64a50c39028a8a6b854f3a62bf14 Mon Sep 17 00:00:00 2001 From: Thomas Bray <87775189+MTG-Thomas@users.noreply.github.com> Date: Thu, 21 May 2026 19:26:57 -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..e352554 --- /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: "49 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@71263fb8507e1b6b84dbb24e5919c83201f5d0b7 # v0.0.17 + with: + baseline-file: .github/tickgit-baseline.csv + fail-on-new: "true" + match-phrases: TODO,FIXME,HACK + ignore-paths: .venv,venv,env,ENV,__pycache__,dist,build,node_modules