aeliot/todo-registrar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aeliot/todo-registrar

Composer 安装命令:

composer require --dev aeliot/todo-registrar

包简介

Register TODOs from source code in issue tracker

README 文档

README

logo

GitHub Release Testing Security Audit GitHub License

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

  1. Detect a TODO (or other configured tag) in a comment.
  2. Create an issue in the issue tracker (list of supported).
  3. Inject the ticket key into the comment and save the source file.

detect_register_inject.png

See latest benchmark here.

According to benchmark TODO Registrar became quicker 20% since version 4.0.0.

Using

Basic usage:

  1. Create a configuration file.
  2. Run the CLI with the needed command line options.
  3. Commit updated files. You can configure a CI job to run the tool and commit changes automatically.

Prepared ways to run:

  1. TODO Registrar Action for GitHub repositories.
  2. Docker container.
  3. PHAR file.
  4. 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

  1. Processing flow — what happens on each run
  2. Features — index of all capabilities
  3. Command line options
  4. Configuration:
    1. General config
      1. Config format:
        1. YAML file
        2. PHP file
        3. YAML from STDIN
    2. Inline config
    3. Issue trackers:
      1. GitHub
      2. GitLab
      3. JIRA
      4. Redmine
      5. Yandex Tracker
  5. Supported formats of comments
  6. Integration on CI
  7. Customization

Supported Issue Trackers

Issue Tracker Description
GitHub See description of configuration. Supported via API tokens.
GitLab See description of configuration. Supported via API tokens (HTTP Token or OAuth).
JIRA See description of configuration. Supported via API tokens.
Redmine See description of configuration. Supported via API keys or Basic Auth.
Yandex Tracker 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

Articles

RU: https://habr.com/ru/articles/832994/

Contributing

Read contributing instructions.

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 aeliot/todo-registrar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 29
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-13