Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 GitHub - w-nityammm/repo-doc: A powerful CLI tool for GitHub repository analysis with AI-powered sentiment analysis of PR discussions.
Nothing Special   »   [go: up one dir, main page]

Skip to content

A powerful CLI tool for GitHub repository analysis with AI-powered sentiment analysis of PR discussions.

License

Notifications You must be signed in to change notification settings

w-nityammm/repo-doc

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

repo-doc

Screenshot 2025-07-03 215008

Expansion of go-repo.

Prerequisites

  • Go 1.16 or higher
  • GitHub Personal Access Token (Recommended)
  • Google Gemini API Key (Required for sentiment analysis)

Installation

Prerequisites

  1. Make sure you have Go 1.16 or higher installed
  2. Ensure your GOPATH is set up correctly (usually ~/go on Unix or %USERPROFILE%\go on Windows)
  3. Add $GOPATH/bin to your system's PATH environment variable

Install from Source (Recommended)

# Clone the repository
git clone https://github.com/w-nityammm/repo-doc.git
cd repo-doc

# Install the tool
go install

After installation, verify it works by running:

repo-doc version

Troubleshooting

If repo-doc command is not found:

  1. Make sure $GOPATH/bin is in your system's PATH
  2. On Unix/Linux:
    echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc
    source ~/.bashrc
  3. On Windows:
    • Open System Properties > Advanced > Environment Variables
    • Add or update the PATH variable to include %USERPROFILE%\go\bin

Authentication

GitHub Authentication

To avoid GitHub API rate limits (60 requests/hour for unauthenticated requests), use a GitHub personal access token:

  1. Create a token at: https://github.com/settings/tokens
  2. Use it in two ways:
    • Pass as a flag: --token YOUR_TOKEN or -t YOUR_TOKEN
    • Set it as an environment variable:
    # Windows
    set GITHUB_TOKEN=your_token_here
    
    # Linux/macOS
    export GITHUB_TOKEN=your_token_here
    Or create a .env file in the project root:
    GITHUB_TOKEN=your_token_here
    

Gemini API Setup

For sentiment analysis features, you'll need a Google Gemini API key:

  1. Get an API key from Google AI Studio
  2. Set it as an environment variable:
    # Windows
    set GEMINI_API_KEY=your_api_key_here
    
    # Linux/macOS
    export GEMINI_API_KEY=your_api_key_here
    Or add it to your .env file:
    GEMINI_API_KEY=your_api_key_here
    

Usage

Basic Usage

# Using owner/repo
repo-doc info golang/go

# Using full GitHub URL
repo-doc info https://github.com/golang/go

Include Pull Requests

# Show specific number of pull requests (up to 100)
repo-doc info golang/go --prs 15
repo-doc info golang/go -p 15

Output Formats

# Table format (default)
repo-doc info golang/go --format table
repo-doc info golang/go -f table

# JSON format
repo-doc info golang/go --format json
repo-doc info golang/go -f json

PR Threads

View discussion threads from pull requests including comments and reviews:

# Show threads from 5 most recent PRs (default)
repo-doc pr-thread golang/go

# Show threads from specific number of PRs
repo-doc pr-thread golang/go --limit 3

# Using full GitHub URL
repo-doc pr-thread https://github.com/golang/go

PR Health Analysis

Analyze the health of pull requests using sentiment analysis:

# Analyze health of last 5 PRs (default)
repo-doc health golang/go

# Analyze specific number of PRs
repo-doc health golang/go --limit 10

# Using full GitHub URL
repo-doc health https://github.com/golang/go

Help

repo-doc --help

Example Usage

Repository Information

repo-doc info golang/go --prs 2

Example output:

================================================================================
πŸ“¦ golang/go
================================================================================
πŸ“ The Go programming language

⭐ Stars:        128418
🍴 Forks:        18139
πŸ› Open Issues:  9359
πŸ’» Language:     Go
πŸ“… Created:      2014-08-19
πŸ”„ Updated:      2025-06-17

================================================================================
πŸ“‹ Recent Pull Requests (2)
================================================================================
🟒 #74251: net/http: reduce allocs in CrossOriginProtection.Check
   πŸ‘€ jub0bs

πŸ”΄ #74249: Victor001 hash patch 1
   πŸ‘€ victor001-hash

PR Health Analysis

repo-doc health golang/go --limit 10

Example output:

πŸ“Š PR Health Report (10 PRs, 42 messages analyzed)
==================================================

🎭 Sentiment Analysis:
βœ… Positive: 65.0%
😐 Neutral:  25.0%
❌ Negative: 10.0%
πŸ“ˆ Average Sentiment: 0.72/1.0

πŸ’¬ Sample Messages:
βœ… [0.85] This is an excellent contribution! Very clean implementation.
βž– [0.5] I've left some minor comments for improvement.
❌ [0.2] Bro what is this $hit.

πŸ₯ Health Assessment:
πŸ‘ Good health - Generally positive discussions
==================================================

About

A powerful CLI tool for GitHub repository analysis with AI-powered sentiment analysis of PR discussions.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Languages

0