A GitHub Action that automatically scans for TODOs in your codebase that mention the current issue being worked on.
-
Extracts the issue number from either:
- PR title (e.g., "Fix login bug KNO-1234")
- Branch name (e.g., "kno-1234-fix-login")
-
Searches the codebase for any TODOs that reference the extracted issue number
- Looks for patterns like
TODO: Fix this for KNO-1234
orTODO: Needs review kno-1234
- Looks for patterns like
-
Comments on the PR with any found TODOs
If you create a PR from a branch named kno-5678-update-api
or with a PR title containing "KNO-5678",
the action will search for TODOs referencing "KNO-5678" or "kno-5678" and comment with the results.
This repository follows a single-source-of-truth approach for workflow files:
- The main workflow is defined in
todo-check.yml
at the repository root - A second workflow (
deploy-workflow.yml
) automatically copies this file to.github/workflows/
when changes are pushed to the main branch - This ensures you only need to update the workflow in one place
todo-check.yml
- The main workflow that checks for TODOs (edit this file).github/workflows/deploy-workflow.yml
- Helper workflow that deploys the main workflow.github/workflows/todo-check.yml
- Auto-generated copy (do not edit directly)