Contributing Guide
Hello! We're delighted that you want to contribute to the Route Peek project. Participation in open-source projects can take many forms, and every contribution is important. In this guide, you'll find steps and recommendations to help you prepare for making changes.
Getting started
To begin working with the repository, follow these steps:
- Fork the repository
First of all, you need to fork the repository. To do this, click the Fork button in the upper right corner of the repository page. This will create a copy of the project in your GitHub account.
- Clone your fork
Clone your fork to your local machine to start working with the code:
git clone https://github.com/[your_username]/route-peek.git
cd route-peek
- Set up upstream
Add the original repository as a remote under the name upstream to be able to receive the latest changes:
git remote add upstream https://github.com/stenin-nikita/route-peek.git
- Install dependencies
Make sure you have all the necessary dependencies for the project installed using npm:
npm ci
Working with code
Now that you've set up your development environment, follow these steps to make changes:
- Create a new branch
Always create a separate branch for each distinct change or fix:
git checkout -b issue1234
- Make changes
Make the necessary changes to the code. After that, prepare them for commit:
git add -A
git commit
Ensure that your commit message follows the Conventional Commits specification:
tag: Brief description of changes
Detailed description, if necessary
Fixes #1234
Use one of the following tags:
fix
- a bug fixfeat
- the addition of new (compatible) functionalityfix!
- incompatible bug fixfeat!
- incompatible new functionalitydocs
- documentation changeschore
- changes that do not affect the functionalitybuild
- changes in the build processrefactor
- refactoring that does not affect the functionalitytest
- changes in testsci
- changes in the CI/CD configurationperf
- performance improvements
- Sync with the main branch
Before submitting changes, ensure that your information is up to date:
git fetch upstream
git rebase upstream/main
- Run tests
Ensure that your changes do not break project functionality:
npm test
- Push changes
Push your changes to the branch of your fork on GitHub:
git push origin issue1234
- Create a pull request
Go to your fork on GitHub and create a pull request. Refer to the GitHub documentation on creating a pull request for detailed instructions.
We hope this guide helps you easily and successfully contribute to the development of Route Peek. Thank you for your participation and support!