aeliot/todo-registrar
Composer 安装命令:
composer require --dev aeliot/todo-registrar
包简介
Register TODOs from source code in issue tracker
关键字:
README 文档
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/
Contributing
aeliot/todo-registrar 适用场景与选型建议
aeliot/todo-registrar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2024 年 06 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「static analysis」 「Issue Tracking」 「yandex tracker」 「TODO registrar」 「JIRA API」 「create issue」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aeliot/todo-registrar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aeliot/todo-registrar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aeliot/todo-registrar 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting
TwigStan is a static analyzer for Twig templates powered by PHPStan
Sentiment analysis library for PHP.
Database Standardization and Analysis Tool for Laravel
Enforce architecture by defining modules with allowed dependencies. Detects forbidden, uncovered, missing and unused module dependencies in PHP projects.
GitScrum is a project to help developer team. Git + Scrum = Team More Productive
统计信息
- 总下载量: 3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-13