{"id":50555285,"url":"https://github.com/techsavvyash/todo-action","last_synced_at":"2026-06-04T06:31:06.954Z","repository":{"id":356533091,"uuid":"1232939138","full_name":"techsavvyash/todo-action","owner":"techsavvyash","description":"Now I don't have to keep an eye on the TODOs your clanker sneaks into code.","archived":false,"fork":false,"pushed_at":"2026-05-08T13:16:30.000Z","size":30,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-08T14:38:48.389Z","etag":null,"topics":["actions","agents","todos"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techsavvyash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-08T12:31:16.000Z","updated_at":"2026-05-08T13:16:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/techsavvyash/todo-action","commit_stats":null,"previous_names":["techsavvyash/todo-action"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/techsavvyash/todo-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techsavvyash%2Ftodo-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techsavvyash%2Ftodo-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techsavvyash%2Ftodo-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techsavvyash%2Ftodo-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techsavvyash","download_url":"https://codeload.github.com/techsavvyash/todo-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techsavvyash%2Ftodo-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33893323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","agents","todos"],"created_at":"2026-06-04T06:31:06.502Z","updated_at":"2026-06-04T06:31:06.948Z","avatar_url":"https://github.com/techsavvyash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TODO Issue Creator\n\nGitHub Action that scans the diff for newly added `TODO` comments and creates issue tickets in the repository where the workflow runs.\n\nIt currently supports pull request diffs, push diffs, and a single commit SHA. The scanner only considers comments that overlap added lines in the diff, so pre-existing TODOs are ignored unless they are touched as new additions.\n\nThe v1 scanner is Tree-sitter-backed for:\n\n- Go: `.go`\n- JavaScript: `.js`, `.jsx`, `.mjs`, `.cjs`\n- TypeScript: `.ts`, `.tsx`\n- Python: `.py`\n\nThe action runs as a composite Node action. It installs dependencies and builds the TypeScript entrypoint at runtime so native Tree-sitter parser packages are available normally on the runner.\n\n## Usage\n\n```yaml\nname: TODO issues\n\non:\n  pull_request:\n  push:\n\npermissions:\n  contents: read\n  pull-requests: read\n  issues: write\n\njobs:\n  todo-issues:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: ./\n        with:\n          github-token: ${{ github.token }}\n          labels: todo,needs-triage\n```\n\n## Inputs\n\n| Input                 | Default                 | Description                                                              |\n| --------------------- | ----------------------- | ------------------------------------------------------------------------ |\n| `github-token`        | `${{ github.token }}`   | Token used to read diffs and create issues.                              |\n| `mode`                | `auto`                  | `auto`, `pr`, `push`, or `commit`.                                       |\n| `commit-sha`          | empty                   | Commit SHA to inspect when `mode` is `commit`.                           |\n| `markers`             | `TODO,FIXME`            | Comma-separated markers to detect inside comment nodes.                  |\n| `labels`              | `todo`                  | Comma-separated labels for created issues.                               |\n| `assignees`           | empty                   | Comma-separated assignees for created issues.                            |\n| `title-prefix`        | `TODO:`                 | Prefix for generated issue titles.                                       |\n| `issue-body-template` | default markdown body   | Markdown template for generated issue bodies.                            |\n| `dry-run`             | `false`                 | Log TODO comments without creating issues.                               |\n| `dedupe`              | `true`                  | Search open issues for a hidden fingerprint before creating a new issue. |\n| `fail-on-todos`       | `false`                 | Fail the workflow when TODO comments are found.                          |\n| `exclude`             | `node_modules,dist,lib` | Comma-separated path substrings to skip.                                 |\n\n## Issue Body Templates\n\nCustomize the generated issue body with `issue-body-template`:\n\n```yaml\nwith:\n  github-token: ${{ github.token }}\n  issue-body-template: |\n    ## {{marker}} in {{file}}\n\n    Line: {{startLine}}\n    Language: {{language}}\n\n    ~~~text\n    {{commentText}}\n    ~~~\n```\n\nSupported placeholders: `{{marker}}`, `{{text}}`, `{{file}}`, `{{startLine}}`, `{{endLine}}`, `{{language}}`, `{{commentText}}`, `{{fingerprint}}`, and `{{fingerprintComment}}`.\n\nThe action automatically includes the hidden fingerprint comment if the template omits it, because dedupe depends on that value.\n\n## Local development\n\n```bash\nnpm install\nnpm run all\n```\n\nUse Node 24 locally:\n\n```bash\nnvm use 24\n```\n\nThe code is split by responsibility so the GitHub Action stays thin:\n\n- `src/action/`: action input parsing and orchestration.\n- `src/github/`: GitHub API reads, issue creation, and dedupe behavior.\n- `src/parsers/`: Tree-sitter language registration and syntax tree traversal.\n- `src/scanner/`: parser-backed TODO scanner over changed files.\n- `src/diff/` and `src/todos/`: pure diff parsing and TODO comment/fingerprint models.\n\nThe scanner and pure utilities are intentionally independent from GitHub Actions so a CLI or lint rule can call the same core later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechsavvyash%2Ftodo-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechsavvyash%2Ftodo-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechsavvyash%2Ftodo-action/lists"}