Thank you for considering contributing to this project! We appreciate your interest and support. This documentation contains set of guidelines to help you during the contribution process. Please take a moment to review this information before submitting any contributions.
If you encounter a bug or issue while using this project, we encourage you to report it. While reporting bugs, please provide as much information as possible, including:
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Any relevant error messages or screenshots
To report a bug or issue, please follow these steps:
- Go to the issues section of the repository.
- Click on the "New Issue" button.
- Fill in the necessary details, following the provided template.
Consistent code formatting and style are important for maintaining a clean and readable codebase. Please adhere to the following guidelines when submitting code changes:
- Use spaces for indentation.
- Follow the established naming conventions for variables, functions and classes.
- Write clear and concise comments to explain complex code sections.
Below you will find the process and workflow used to review and merge your changes.
- Look for the existing issue or create your own issue.
- Comment on the respective issue you would like to work before creating a Pull Request.
- Wait for the issue to be assigned to you after which you can start working on it.
- Fork this repository by clicking on the "Fork" button. This will create a local copy of this respository on your GitHub profile.
- Once the repository is forked you need to clone it to your local machine.
- Click on the "Code" button in the repository page and copy the link provided in the dropdown menu.
git clone https://github.com/<your-username>/AR-Webstore
- Keep a reference to the original project in
upstream
remote.
cd AR-Webstore
git remote add upstream https://github.com/ShwetKhatri2001/AR-Webstore
git remote -v # To the check the remotes for this repository
- If the project is forked already, update the copy before working.
git remote update
git checkout <branch-name>
git rebase upstream/<branch-name>
- Always create a new branch and name it accordingly so as to identify the issue you are addressing.
# It will create a new branch with name branch_name and switch to that branch
git checkout -b branch_name
- Work on the issue(s) assigned to you, make the necessary changes in the files/folders needed.
- After making the changes add them to the branch you've created.
# To add all new files to branch Branch_Name
git add .
# To add only a few files to Branch_Name
git add <file name>
- Add your commits.
- Along with the commit give a descriptive message that reflects your changes.
git commit -m "message"
- Note : A Pull Request should always have only one commit.
- Push the committed changes in your branch to your remote repository.
git push origin branch_name
- Go to your repository in the browser and click on compare and pull request.
- Add a title and description to your pull request that best describes your contribution.
- After which the pull request will be reviewed and the maintainer will provide the reviews required for the changes.
If no changes are needed, this means that your Pull Request has been reviewed and will be merged to the original code base by the maintainer.
- Note: Always add screenshots to help the maintainer know what this enhancement/implementation is all about.
By following these guidelines, we aim to create a welcoming community where everyone feels comfortable and empowered to contribute.
Thank you for interest and support!
You can refer to the following articles on basics of Git and GitHub and also contact the Project Mentors, in case you are stuck: