Skip to content

kyin42/gh-pr-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub PR Check Monitor

Monitor GitHub Pull Request checks with system notifications. Get notified when all your PR checks complete.

Prerequisites

GitHub CLI (gh) - Required and must be authenticated

# Install GitHub CLI
brew install gh                    # macOS
winget install --id GitHub.cli     # Windows
sudo apt install gh               # Linux

# Authenticate
gh auth login

Installation

Local Development Setup

Since this package isn't published on npm yet, use npm link to install it locally:

# Clone the repository
git clone <repository-url>
cd gh-pr-check

# Install dependencies
npm install

# Create global symlink
npm link

# Now you can use the command globally
gh-check

Alternative: Run directly

You can also run it directly without linking:

# From the project directory
npm start
# or
node bin/gh-check.js

Usage

Auto-Discover PRs (No URL needed)

Run from any git repository to automatically find and monitor open PRs:

gh-check

Behavior:

  • No open PRs: Exits with message
  • 1 open PR: Automatically monitors that PR
  • Multiple PRs: Prompts you to select which PR to monitor
Found 3 open PRs:
==============================
1. PR #123 - Fix authentication bug
   Author: john.doe
   URL: https://github.com/owner/repo/pull/123

2. PR #124 - Add new feature
   Author: jane.smith
   URL: https://github.com/owner/repo/pull/124

3. PR #125 - Update documentation
   Author: bob.wilson
   URL: https://github.com/owner/repo/pull/125

Please select a PR (1-3) or 'q' to quit: 2

Monitor Specific PR

Provide a PR URL to monitor a specific PR:

gh-check https://github.com/owner/repo/pull/123

Options

Single Check (no continuous monitoring)

gh-check --single
gh-check https://github.com/owner/repo/pull/123 --single

Verbose Mode (detailed check information)

gh-check --verbose
gh-check https://github.com/owner/repo/pull/123 --verbose

Help

gh-check --help

Example Output

Starting PR checks monitoring...
Checking every 20 seconds until all checks complete
Started at: 2:30:15 PM

--- Check #1 (2:30:15 PM) ---
All Checks Status:
==================
✅ unit_tests: SUCCESS
🟡 ESLint: PENDING
🟡 TypeScript: PENDING

📊 Progress: 1/3 checks complete
🟡 Still pending: ESLint, TypeScript

--- Check #2 (2:30:35 PM) ---
All Checks Status:
==================
✅ unit_tests: SUCCESS
✅ ESLint: SUCCESS
✅ TypeScript: SUCCESS

🎉 All checks completed successfully for PR #123
⏱️  Total time: 1m 20s (2 checks)

Status Icons: ✅ Success | ❌ Failed | 🟡 Pending | ⚪ Cancelled

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published