aeliot / todo-registrar
Register TODOs from source code in issue tracker
Package info
github.com/Aeliot-Tm/todo-registrar
Type:application
pkg:composer/aeliot/todo-registrar
Requires
- php: ^8.2
- ext-ctype: *
- ext-mbstring: *
- ext-simplexml: *
- ext-tokenizer: *
- aeliot/env-resolver: ^1.0.2
- aeliot/todo-registrar-contracts: ^3.0.0
- aeliot/yaml-token: 0.1.*
- bugrov/yandex-tracker: 0.1.0
- guzzlehttp/guzzle: ^7.9
- http-interop/http-factory-guzzle: ^1.2
- kbsali/redmine-api: ^2.8
- knplabs/github-api: ^3.14
- lesstif/php-jira-rest-client: ^5.8
- m4tthumphrey/php-gitlab-api: ^11.14
- netresearch/jsonmapper: ^4.2
- nikic/php-parser: ^5.7
- psr/container: ^2.0
- psr/http-client: ^1.0
- symfony/config: ^7.4
- symfony/console: ^7.4
- symfony/dependency-injection: ^7.4
- symfony/deprecation-contracts: ^3.6
- symfony/finder: ^5.4|^6.0|^7.0
- symfony/validator: ^7.4
- symfony/yaml: ^3.4|^4.0|^5.0|^6.0|^7.0
Requires (Dev)
- dg/bypass-finals: ^1.7
- phpstan/phpstan: ^2.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2026-06-22 19:03:54 UTC
README
It scans PHP and YAML source files for TODO/FIXME and other configured tags, registers them as issues in trackers such as JIRA or GitHub, and injects issue keys back into comments — with labels, linked issues, assignees, and other metadata as you configure.
Motivation
Developers often leave notes in code so they do not forget to fix something — and then forget anyway. One reason is that such comments are hard to manage centrally.
Why write a comment in code instead of creating an issue? It is convenient: no issue tracker UI, no repeated form filling, and the note sits exactly where the change is needed. Whatever the reason, those comments can stay in the codebase for years.
Someone has to manage them.
This tool registers issues with the parameters you need and injects ticket IDs/keys into the original comments. That prevents duplicate issues and makes it easy to jump from a tracker ticket to the right place in code.
How it works
- Detect a TODO (or other configured tag) in a comment.
- Create an issue in the issue tracker (list of supported).
- Inject the ticket key into the comment and save the source file.
See latest benchmark here.
According to benchmark TODO Registrar became quicker 20% since version 4.0.0.
Using
Basic usage:
- Create a configuration file.
- Run the CLI with the needed command line options.
- Commit updated files. You can configure a CI job to run the tool and commit changes automatically.
Prepared ways to run:
- TODO Registrar Action for GitHub repositories.
- Docker container.
- PHAR file.
- Composer package.
For GitHub-hosted repositories, the GitHub Action is the simplest option.
Docker provides a fully isolated environment — no dependency on your local PHP version or Composer packages.
A single PHAR file also avoids dependency conflicts, but you must match PHP version and extensions on the host.
The Composer package is the most common integration, but less flexible than Docker or PHAR.
Documentation references
- Processing flow — what happens on each run
- Features — index of all capabilities
- Command line options
- Configuration:
- General config
- Config format:
- Inline config
- Issue trackers:
- General config
- Supported formats of comments
- Integration on CI
- Customization
Supported Issue Trackers
| Issue Tracker | Description |
|---|---|
| See description of configuration. Supported via API tokens. | |
| See description of configuration. Supported via API tokens (HTTP Token or OAuth). | |
| See description of configuration. Supported via API tokens. | |
| See description of configuration. Supported via API keys or Basic Auth. | |
| See description of configuration. Supported via OAuth tokens. | |
| Other Issue Trackers | Request an implementation through the issues section or see customization section to do it yourself. |
GitHub Actions based on the project
- TODO Registrar Action — register issues and create Pull Request on GitHub.
- TODO Registrar Statistic Action — add sticky-comment Pull Request on GitHub with statistic about not registered TODOs code
Articles
RU: https://habr.com/ru/articles/832994/