Skip to content

Latest commit

Β 

History

History
112 lines (77 loc) Β· 1.89 KB

File metadata and controls

112 lines (77 loc) Β· 1.89 KB

πŸ“Š MergeStats

MergeStats is a GitHub Pull Request analytics tool that helps you track and visualize your PR statistics across repositories.


✨ Features

  • View PR statistics for your repositories
  • Filter by month and year
  • See top repositories by PR count
  • View merged vs. closed PR statistics
  • Detailed PR list with status and timestamps

πŸ”§ Prerequisites

  • Node.js (v14+)
  • npm

βš™οΈ Setup Instructions

  1. Clone the repository
git clone https://github.com/yourusername/MergeStats.git
cd MergeStats
  1. Install backend dependencies
npm install
  1. Create .env file in the root directory
touch .env

Create a GitHub personal access token (classic):

  1. Go to GitHub β†’ Settings β†’ Developer settings

  2. Click on Personal Access Tokens β†’ Tokens (classic)

  3. Click Generate new token (classic)

  4. Add a name and expiration date

  5. No scopes are required for public repo access

  6. Click Generate token

  7. Copy the token and add it to your .env file:

GITHUB_TOKEN=your_token_here

Open a new terminal

cd mergestats-ui

Install frontend dependencies

npm install

πŸš€ Running the App

In the root directory

npm start

The server will run on http://localhost:3000

Start the frontend

In the mergestats-ui directory

npm run dev 

The frontend will run on http://localhost:5173 (or another port if 5173 is in use)


πŸ“Œ Usage

  1. Enter a GitHub username
  2. Select the year and month
  3. Click "Generate Statistics"
  4. View the PR statistics and visualizations

🧰 Technical Details

  1. Backend: Node.js with Express
  2. Frontend: React with TypeScript and Tailwind CSS
  3. Charts: Chart.js
  4. API: GitHub REST API

πŸ–ΌοΈ Screenshots

πŸ“Š Dashboard View

Dashboard

Graph

PR details