Thank you for investing your time in contributing to our project! ✨.
Read our Code of Conduct to keep our community approachable and respectable.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
To get an overview of the project, read the README file.
Here are some resources to help you with Chrome Extensions development:
Here are some resources to help you get started with open source contributions:
- Finding ways to contribute to open source on GitHub
- Set up Git
- GitHub flow
- Collaborating with pull requests
If you spot a problem wit this project, search if an issue already exists. If a related issue doesn't exist, you can open a new issue using a relevant issue form.
Scan through our existing issues to find one that interests you. You can narrow down the search using labels
as filters. See "Label reference" for more information. If you find an issue to work on, you are welcome to assign it to yourself and to open a Pull Request with a fix.
Overview of How To Fork and Submit a PR
- https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/
- https://www.tomasbeuzen.com/post/git-fork-branch-pull/
You cannot make your changes directly on the repository. Create a fork as a copy and clone it to work on it locally.
-
Using GitHub Desktop:
- Getting started with GitHub Desktop will guide you through setting up Desktop.
- Once Desktop is set up, you can use it to fork the repo!
-
Using the command line:
- Fork the repo so that you can make your changes without affecting the original project until you're ready to merge them.
If you don't already have it, install Node Version Manager (NVM).
On the command line, use NVM to use the Node version specified in {PATH_TO_LOCAL_REPO}/.nvmrc
.
cd {PATH_TO_LOCAL_REPO}
nvm use
On the command line, use Node to install dependencies.
cd {PATH_TO_LOCAL_REPO}
npm clean install
On the command line:
cd {PATH_TO_LOCAL_REPO}
git checkout -b {NEW_BRANCH_NAME}
On your editor, edit files as needed.
📣 To ensure you changes will be included in the next release notes, add your updates to the [Unreleased] section of the CHANGELOG under the appropriate update type as specified in Keep A Changelog:
Added
for new features.Changed
for changes in existing functionality.Deprecated
for soon-to-be removed features.Removed
for now removed features.Fixed
for any bug fixes.Security
in case of vulnerabilities.
On the command line:
cd {PATH_TO_LOCAL_REPO}
npm run test
npm run lint
npm run format
Commit and push your code changes once you are happy with them.
When you're finished with the changes, create a pull request.
- Fill in the Pull Request description and information as indicated by the template.
- Don't forget to link PR to issue if you are solving one.
- Once you submit your PR, the CI pipeline checks tests, linters, and formatters. Check the results to see if anything needs to be fixed.
After submitting the PR, your code changes will be subject to review.
We may ask for changes to be made, either using suggested changes or pull request comments.
If you run into any merge issues, checkout this git tutorial to help you resolve merge conflicts and other issues.
The repository owner will merge your PR once it passes code review.
This means your code changes are now part of the main repository and can be pulled.
NOTE: This project does not automatically publish to the Chrome Store, but you can load the extension locally.
Congratulations, you are now officially a contributor 🎉🎉 Thank you! ✨.
This project can be developed on Windows, however a few potential gotchas need to be kept in mind:
- Regular Expressions: Windows uses
\r\n
for line endings, while Unix-based systems use\n
. Therefore, when working on Regular Expressions, use\r?\n
instead of\n
in order to support both environments. The Node.jsos.EOL
property can be used to get an OS-specific end-of-line marker. - Paths: Windows systems use
\
for the path separator, which would be returned bypath.join
and others. You could usepath.posix
,path.posix.join
etc and the slash module, if you need forward slashes - like for constructing URLs - or ensure your code works with either. - Bash: Not every Windows developer has a terminal that fully supports Bash, so it's generally preferred to write scripts in JavaScript instead of Bash.
- Filename too long error: There is a 260 character limit for a filename when Git is compiled with
msys
. While the suggestions below are not guaranteed to work and could cause other issues, a few workarounds include:- Update Git configuration:
git config --system core.longpaths true
- Consider using a different Git client on Windows
- Update Git configuration: