https://github.com/gitpod-io/browser-extension
The browser extension for gitpod.io. Works with Chrome and Firefox.
https://github.com/gitpod-io/browser-extension
Last synced: about 1 year ago
JSON representation
The browser extension for gitpod.io. Works with Chrome and Firefox.
- Host: GitHub
- URL: https://github.com/gitpod-io/browser-extension
- Owner: gitpod-io
- License: mit
- Created: 2019-11-01T16:01:22.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T09:57:04.000Z (about 1 year ago)
- Last Synced: 2025-04-12T16:58:46.141Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://github.com/gitpod-io/gitpod
- Size: 1.75 MB
- Stars: 162
- Watchers: 16
- Forks: 87
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Gitpod Browser extension
[](https://gitpod.io/#https://github.com/gitpod-io/browser-extension)
This is the browser extension for Gitpod. It supports Chrome (see [Chrome Web Store](https://chrome.google.com/webstore/detail/dodmmooeoklaejobgleioelladacbeki/)), Firefox (see [Firefox Add-ons](https://addons.mozilla.org/firefox/addon/gitpod/)) and Edge (see [how to install Chrome extensions](https://support.microsoft.com/help/4538971/microsoft-edge-add-or-remove-extensions)), and adds a **Gitpod** button to the configured GitLab, GitHub and Bitbucket installations (defaults to `gitlab.com`, `github.com` and `bitbucket.org`) which immediately creates a Gitpod workspace for the current git context:

### Issues
We are currently tracking all issues related to the browser extension in the [`gitpod-io/gitpod`](https://github.com/gitpod-io/gitpod) repository.
You can use the [`component: browser-extension`](https://github.com/gitpod-io/gitpod/issues?q=is%3Aissue+is%3Aopen+extension+label%3A%22component%3A+browser-extension%22) label to search for relevant issues including feature proposals and bug reports.
### Development
To make changes and test them using Gitpod itself:
- add test cases to the [unit test](https://github.com/gitpod-io/browser-extension/blob/se/plasmo/test/src/button-contributions.spec.ts#L39)
- try out changes like this:
1. run `pnpm build`
1. run `pnpm watch-prod` and download the built binary for your system (local machine)
1. run the binary anywhere on your local machine to sync the extension folder locally.
1. open Chrome and go to `chrome://extensions/`
1. enable `Developer mode` (top right)
1. click `Load unpacked` (top left) and select the folder you just downloaded
1. now you can test your changes
1. repeat step 1 and 2 and [reload the extension](chrome://extensions/) whenever you want to test new changes
Or, when developing locally, you can execute the following to enable hot reloading with the extension in Chrome:
```
pnpm dev
```
Then, `Load unpacked` the `build/chrome-mv3-dev` folder in Chrome and after making changes, pages will reload automatically and the changes will be reflected immediately.
#### Build
The build happens automatically when you start a workspace but if you want to build explicitly, use these commands:
```
pnpm install
pnpm build --target=chrome-mv3 # or --target=firefox-mv3
pnpm package --target=chrome-mv3 # or --target=firefox-mv3
```
### Testing
You can test the extension without publishing to the store. Before uploading the bundle to the browser, make sure to [build](#build) the code, then follow these steps:
#### For Chrome
1. Open Chrome
2. Click Settings -> Extensions -> Load unpacked
3. Select the `chrome-mv3-prod` folder inside of `build/`
#### For Firefox
1. Open Firefox
1. Go to `about:debugging#/runtime/this-firefox`
1. Click Load Temporary Add-on -> Select the `firefox-mv3-prod.zip` file. Please note, that some features (like extension settings) will not work.
## Release
We currently publish the extension for **Chrome** and **Firefox**.
To release a new version, follow these steps:
1. Bump up the version value inside `package.json` (`yarn version --patch` or `yarn version --minor`)
1. Push your changes to `main`
1. Compose a list of changes using the list of commits that were pushed since last version
1. [Create a new release](https://github.com/gitpod-io/browser-extension/releases/new), listing changes:
```yaml
### Changes
- Change/Fix A
- Change/Fix B
- Change/Fix C
### Credits
Thanks to @{EXTERNAL_CONTRIBUTOR_USERNAME} for helping! 🍊
```
For Firefox:
1. Sign in to https://addons.mozilla.org/en-US/developers/addon/gitpod/edit with the credentials from 1Password
2. Click Upload new version
3. Upload the zip file (`firefox-mv3-prod.zip`)
4. Go through the steps and submit
For Chrome:
1. Using your Google account, open the [`gitpod-browser-extension Google Group`](https://groups.google.com/g/gitpod-browser-extension)
2. If you don't have access, reach out for [help in Slack](https://gitpod.slack.com/archives/C04QC1ZMPV4)
3. Once you are in the Google Group, make sure to "Switch to Gitpod" in the top navbar
4. Click "Upload new package"
5. Upload the zip file (`chrome-mv3-prod.zip`) and submit
6. Wait a few hours for the review to happen!