This Chrome extension adds a "Copy as Markdown" button to GitHub Pull Request pages. Clicking this button, or pressing Cmd+C twice quickly (when no text is selected), fetches the diff content of the PR and copies it to the user's clipboard in Markdown format.
Warning: This extension fetches the PR content by accessing the
.diffURL provided by GitHub. Frequent use, especially on large repositories or across many PRs in a short period, may lead to hitting GitHub's rate limits, resulting in temporary errors (like HTTP 429).
Button state after successful copy:

- Adds a "Copy as Markdown" button to the header actions on GitHub PR pages (
https://github.com/*/*/pull/*). - Allows copying the PR diff using a keyboard shortcut:
Cmd+C+Cmd+C(orCtrl+C+Ctrl+Con Windows/Linux). - NEW: Copy all review dog errors using
Cmd+Shift+K(orCtrl+Shift+Kon Windows/Linux). - Fetches the
.diffversion of the PR. - Copies the content to the clipboard.
- Handles GitHub's dynamic page navigation.
To install this extension locally for development or testing:
- Clone or Download: Get the code from this repository onto your local machine.
- Open Chrome Extensions: Open Google Chrome, type
chrome://extensions/into the address bar, and press Enter. - Enable Developer Mode: Ensure the "Developer mode" toggle switch (usually in the top-right corner) is enabled.
- Load Unpacked:
- Click the "Load unpacked" button (usually in the top-left corner).
- In the file dialog that appears, navigate to the directory where you cloned/downloaded this repository.
- Select the
extensionfolder (the one containingmanifest.json). - Click "Select" or "Open".
- Verify: The "GitHub PR Diff Markdown Copier" extension should now appear in your list of extensions and be enabled. You can visit any GitHub Pull Request page to see the "Copy as Markdown" button.
- Button: Navigate to a GitHub PR page. Click the "Copy as Markdown" button in the header actions area.
- Keyboard Shortcut: On a GitHub PR page, ensure no text is selected, then quickly press
Cmd+Ctwice (orCtrl+Ctwice).
The button text will change to "Copying..." and then "Copied!" upon success. Paste the content into any text editor that supports Markdown.
- Keyboard Shortcut: On a GitHub PR page, press
Cmd+Shift+K(orCtrl+Shift+Kon Windows/Linux). - This will scan the page for all review dog error comments and copy them as formatted markdown.
- A green notification will appear showing the number of errors copied.
- The copied format includes the file name, ESLint rule, and error message for each error.
