Skip to content

Adds the Copy button to the file paths in the PR description page on github.com

License

Notifications You must be signed in to change notification settings

zFernand0/chrome-extension-GH-PR-clipboard

Repository files navigation

PR PathClip

build

This Chrome extension adds a copy-to-clipboard button next to file paths displayed in the GitHub Pull Requests description (default) tab, similar to the Files Changes tab.

Prerequisites

Option

Includes the following

  • TypeScript
  • Webpack
  • React
  • Jest
  • Example Code
    • Chrome Storage
    • Options Version 2
    • content script
    • count up badge number
    • background

Project Structure

  • src/typescript: TypeScript source files
  • src/assets: static files
  • dist: Chrome Extension directory
  • dist/js: Generated JavaScript files

Setup

npm install

Import as Visual Studio Code project

...

Build

npm run build

Build in watch mode

terminal

npm run watch

Visual Studio Code

Run watch mode.

type Ctrl + Shift + B

Load extension to chrome

Load dist directory

Test

npx jest or npm run test


Acknowledgements

  • Thanks to @t1m0thyj for the inspiration! 😋

About

Adds the Copy button to the file paths in the PR description page on github.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published