https://github.com/byron/vibed-gh-comment-check
Checks how many comments you can create per minute. Most code is generated.
https://github.com/byron/vibed-gh-comment-check
Last synced: 21 days ago
JSON representation
Checks how many comments you can create per minute. Most code is generated.
- Host: GitHub
- URL: https://github.com/byron/vibed-gh-comment-check
- Owner: Byron
- License: apache-2.0
- Created: 2025-08-28T08:44:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-29T08:51:24.000Z (11 months ago)
- Last Synced: 2025-10-06T18:58:28.386Z (10 months ago)
- Language: Rust
- Size: 118 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PR Comment Analyzer
A Rust CLI tool that analyzes GitHub pull request comments and calculates the average time spent per comment.
## Features
- Counts all types of comments (PR comments, review comments, issue comments) made by the token owner
- Supports multiple PR numbers for a single repository in a single run
- Handles GitHub API pagination automatically
- Calculates time per comment based on total time and comment count
- Allows adding additional comment count for comments that can't be easily detected
- **Auto-detects repository from git remote when run inside a git repository**
- **Supports both repository slug format (owner/repo) and full URLs**
## Installation
1. Make sure you have Rust installed
2. Clone this repository
3. Run `cargo build --release`
## Usage
```bash
cargo run -- --token --minutes [--repository ] [--additional ] ...
```
The repository can be specified in multiple ways:
- **Auto-detection** (default): If you're inside a git repository, it will automatically detect the GitHub repository from the remote origin
- Supports both HTTPS (`https://github.com/owner/repo.git`) and SSH (`git@github.com:owner/repo.git`) remote formats
- Automatically strips `.git` extensions
- **Repository slug**: `owner/repo` format (e.g., `Byron/vibed-gh-comment-check`)
- **Full URL**: `https://github.com/owner/repo` format
### Options
- `--token` or `-t`: GitHub personal access token (required)
- `--minutes` or `-m`: Total time spent in minutes (required)
- `--repository` or `-r`: GitHub repository (optional - auto-detects from git remote if not provided)
- `--additional` or `-a`: Additional comment count to add unconditionally to the total (optional, default: 0)
### Examples
**Auto-detection** (when run inside the target git repository):
```bash
cargo run -- --token ghp_abc123... --minutes 120 40 41 42
```
**Using repository slug format**:
```bash
cargo run -- --token ghp_abc123... --minutes 120 --repository owner/repo 40 41 42
```
**Using full URL format**:
```bash
cargo run -- --token ghp_abc123... --minutes 120 --repository https://github.com/owner/repo 40 41 42
```
**With additional comments for undetected comments**:
```bash
cargo run -- --token ghp_abc123... --minutes 120 --additional 15 --repository owner/repo 40 41 42
```
**Using short flags**:
```bash
cargo run -- -t ghp_abc123... -m 120 -a 15 -r owner/repo 40 41 42
```