Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 2.28 KB

pr_guidelines.md

File metadata and controls

36 lines (25 loc) · 2.28 KB

Thank you for considering contributing to OpenCDA! We welcome contributions from the community to make our project better. Before you get started, please take a moment to read the following guidelines.

Please do not directly create a branch from the original repo. Please fork the OpenCDA repository to your local github repo instead. Forking the repository helps keep the main project tidy. It allows you to make changes in your forked repository without cluttering the original repository. Please make changes in your local repo and when the codes are ready to merge with the main branch, please create a pull request to the official OpenCDA repo. Project maintainers will review your changes, suggest modifications if needed, and discuss any concerns.

Fork the Repository

  • Navigate to the OpenCDA repository on GitHub.
  • Click the "Fork" button in the top-right corner of the page. This action will create a personal fork of the OpenCDA repository under your GitHub account.

Clone the repository and create your own branch

  • Running the command github clone https://github.com/your-username/OpenCDA
  • Add the official OpenCDA repository as a remote to stay updated: git remote add upstream https://github.com/ucla-mobility/OpenCDA
  • Create your own branch git checkout -b feature/short_summary_of_feature
  • Make your changes, commit them, and push to your fork
git add .
git commit -m "Description of changes"
git push origin feature/short_summary_of_feature

Submit Pull Request

  • Go to the Pull Requests tab of the official OpenCDA repository.
  • Click on the "New Pull Request" button and click compare across forks
  • Set the base repository to "ucla-mobility/OpenCDA". Set the head repository to your own forked OpenCDA repo e.g., “your-name/OpenCDA” and set the compare to the branch you created e.g., “feature/short_summary_of_feature”.
  • Provide a title and description for your pull request, explaining the changes you made.
  • Click "Create Pull Request."

Project maintainers will review your changes, suggest modifications if needed, and discuss any concerns.Make necessary changes by pushing them to the same branch. The pull request will automatically update.Once your changes are approved, they will be merged into the main project.

Thank you for contributing to OpenCDA! 🚀