Skip to content

PinePeakDigital/gh2cursor

Repository files navigation

gh2cursor

A Chrome extension that adds a "Send to Cursor" button to GitHub PR feedback, making it easy to copy comments and feedback directly to Cursor chat.

Features

  • 🚀 One-click copy of GitHub PR feedback to clipboard
  • 📝 Includes PR context (PR number, file path, line number, author)
  • 🎨 Seamlessly integrates with GitHub's UI
  • 🌓 Supports both light and dark modes
  • ⚡ Works on all GitHub PR pages

Installation

Install from Source (Developer Mode)

  1. Clone this repository:

    git clone https://github.com/PinePeakDigital/gh2cursor.git
    cd gh2cursor
  2. Open Chrome and navigate to chrome://extensions/

  3. Enable "Developer mode" (toggle in the top-right corner)

  4. Click "Load unpacked"

  5. Select the gh2cursor directory

  6. The extension is now installed! You should see the gh2cursor icon in your extensions list.

Usage

  1. Navigate to any GitHub Pull Request page

  2. Look for PR comments and review feedback

  3. Click the green "Send to Cursor" button next to any comment

  4. The feedback will be copied to your clipboard with context (PR number, file, line, author)

  5. Open Cursor and paste the feedback into the chat

What Gets Copied

When you click "Send to Cursor", the extension formats the feedback like this:

PR #123 - src/components/Button.tsx (Line 45)
From: reviewer-username

[Comment text here]

Development

The extension consists of:

  • manifest.json - Extension configuration
  • content.js - Main content script that injects buttons
  • styles.css - Styling for buttons and notifications
  • icons/ - Extension icons in various sizes

Privacy

This extension:

  • ✅ Only runs on github.com
  • ✅ Does not collect or transmit any data
  • ✅ Does not require any external permissions
  • ✅ All processing happens locally in your browser

License

MIT License - see LICENSE file for details

About

A Chrome extension that adds a button to GitHub PR feedback to add the feedback to Cursor chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •