We appreciate contributions and suggestions for this project! Before contributing, you'll need to sign a Contributor License Agreement (CLA) to confirm that you have the rights to, and do, grant us permission to use your contribution. More details can be found at Microsoft CLA.
This project adheres to the Microsoft Open Source Code of Conduct. For more information, please visit the Code of Conduct FAQ or contact opencode@microsoft.com with any questions or comments.
Below, you'll find details on how our code update process works and instructions on how to contribute.
Follow these guidelines to ensure smooth integration and maintain the quality of the project. Adhering to these best practices will streamline the review process and keep the codebase clean.
-
Target the
insiders
Branch: Always direct your pull request to theinsiders
branch to ensure that changes are properly integrated into the project's development workflow. -
Keep Pull Requests Small: Aim to make your pull requests as focused and concise as possible. This makes it easier to review and ensures quicker integration into the codebase.
-
Associate with Prioritized Issues: Ensure that each pull request is linked to a specific, prioritized issue in the project backlog. This helps maintain alignment with project goals and ensures that work is being done on tasks of the highest importance.
-
Bugs and Documentation Corrections: Pull requests that address bugs or correct documentation do not need to be associated with prioritized issues. These can be submitted directly to maintain the quality and accuracy of the project.
-
Multi-Repo Dependencies: If your pull request has dependencies on updates in other repositories, make sure to mention this in the pull request description. Additionally, create a corresponding pull request in the other repository to ensure synchronized updates across all related projects.
We use a simplified version of the Fork and Branch Workflow alongside Git Flow. The main
branch always contains deployment-ready code, while the insiders
branch serves as our integration branch.
Contributors create feature branches from insiders
in their forks. Once changes are completed, they submit a pull request to the insiders
branch in the upstream repository. After review and approval, reviewers merge the changes into insiders
. Weekly, maintainers group these changes into a pull request from insiders
to main
for final review and merging.
This section outlines the contribution process, highlighting the key actions for both contributors and reviewers. The accompanying diagram visually represents the workflow.
- Fork the Repository: Create a copy of the original repository in your GitHub account.
- Clone Locally: Download the forked repository to your machine.
- Add Upstream: Link the original repository as "upstream" to keep your fork synced.
- Create a Feature Branch: Start a new branch for your changes.
- Commit and Push Changes: Implement your changes and push them to your GitHub fork.
- Open a Pull Request: Propose your changes to the original repository.
- Review Pull Request: Review the pull request, approve it, and merge it into the
insiders
branch. - Merge to Main: Include changes from merged pull requests into a pull request from
insiders
tomain
. - Final Review and Merge: Reviewers conduct a final assessment of the pull request for
main
and merge it intomain
.
- Keep Your Fork Updated: Regularly sync your fork with the original repository to stay current.
Here’s an example of how to implement a feature called conversation-metadata
in the gpt-rag-orchestrator
repository. The process is similar for other repositories, such as gpt-rag-ingestion
.
-
Create a Fork by clicking the Fork button on the repository page on GitHub. Be sure to include all branches.
https://github.com/placerda/gpt-rag-orchestrator.git
-
Clone Your Fork Locally using the standard clone command.
git clone https://github.com/placerda/gpt-rag-orchestrator.git
-
Set Upstream Remote: Link the original repository as "upstream" for future use.
git remote add upstream git@github.com:Azure/gpt-rag-orchestrator.git
-
Create a Feature Branch in your forked repository.
git checkout -b conversation-metadata
-
Make Changes Locally: Modify the code in your local clone. Commit your changes and push them to your fork on GitHub.
git add . git commit -m 'Implemented conversation metadata' git push origin conversation-metadata
-
Create a Pull Request: Go to your fork on GitHub and click "Pull Request." This request, aimed at the
insiders
branch, will be reviewed and potentially merged by the repository maintainers.Done! Now, wait for the review and approval of your pull request. Changes may be requested.
It’s recommended that you update your local clone after your pull request is approved. Follow these steps:
git pull upstream main
git push origin main
git pull upstream insiders
git push origin insiders
Once your changes are merged, you can delete the feature branch from your local clone using these commands:
git switch insiders
git branch -d conversation-metadata
git push origin main
git push --delete origin conversation-metadata