gh-pr-todo

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 8 Imported by: 0

README ΒΆ

gh-pr-todo

A GitHub CLI extension that extracts TODO comments from pull request diffs, helping you track action items and reminders in your code changes.

✨ Features

  • πŸ” Smart Detection: Finds TODO, FIXME, HACK, NOTE, XXX, and BUG comments
  • 🎨 Beautiful Output: Colorized terminal output with loading indicators
  • πŸ“‹ Multiple Formats: Supports various comment styles (//, #, <!--, ;, /*, markdown lists)
  • ⚑ Fast: Efficient diff parsing with GitHub CLI integration
  • 🎯 PR-Focused: Only shows comments from your current changes

πŸš€ Installation

gh ext install Suree33/gh-pr-todo

Prerequisites:

  • GitHub CLI installed and authenticated
  • Go 1.20.0 or later

πŸ“– Usage

Navigate to your repository with an open pull request and run:

gh pr-todo
Example Output
βœ” Fetching PR diff...

Found 3 TODO comment(s)

* src/api/users.go:42
  // TODO: Add input validation for email format

* components/Header.tsx:15
  // FIXME: Memory leak in event listener cleanup

* docs/setup.md:8
  <!-- NOTE: Update this section after v2.0 release -->

πŸ”§ Supported Comment Formats

The tool recognizes TODO-style comments in various formats:

Format Example
C-style // TODO: Fix this bug
C-style block /* HACK: Quick fix for demo */
Shell/Python # FIXME: Optimization needed
HTML/XML <!-- NOTE: Review this section -->
Assembly/Config ; XXX: Temporary workaround

πŸ—οΈ Supported Keywords

  • TODO
  • FIXME
  • HACK
  • NOTE
  • XXX
  • BUG

πŸ› οΈ Development

Building from Source
git clone https://github.com/Suree33/gh-pr-todo.git
cd gh-pr-todo
go build -o gh-pr-todo main.go
Project Structure
β”œβ”€β”€ main.go              # CLI entry point
β”œβ”€β”€ internal/
β”‚   └── parser.go        # Diff parsing logic
β”œβ”€β”€ pkg/
β”‚   └── types/
β”‚       └── todo.go      # TODO type definitions
└── scripts/             # Build scripts (if any)
Dependencies

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the terms specified in the LICENSE file.

πŸ› Issues & Feature Requests

Found a bug or have a feature idea? Please open an issue on GitHub.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL