-
Notifications
You must be signed in to change notification settings - Fork 549
PR Guidelines
You will need to complete a Contributor License Agreement (CLA) to submit changes. This agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright. Upon submitting a pull request, you will automatically be given instructions on how to sign the CLA.
The following are some general practices to follow when submitting PRs (Pull Requests) to the Fluid Framework repo to contribute changes. The PRs should:
- Have a title and description that explains what the code does
- Refers to the issue number the change relates to if there is one a. Use "close" or "fixes" keywords in description followed by the issue number to auto close the issue when the PR is merged
- Has at least one official team reviewer approval
- Prior to merging the PR (especially for PRs that are more than a day old) to master after it has been approved,
- Merge in the latest master to your branch and update the PR
- Make sure that master merges cleanly without any conflicts
- Make sure it passes all CI builds
- Do one last quick self review of the change to make sure it is in the state that you want to merge (e.g. no extra files or changes are accidentally included)
- Merge in the latest master to your branch and update the PR
- Always squash and merge. Also update the squash commit description to be a one-liner summary; usually the PR title is sufficient. The squash and merge prevents unnecessary commits from polluting the merge history and keep it easy to read and track changes.
This assumes that you have already created a branch on your own fork with the changes you wish to submit. Please follow the steps here if you have not done this yet.
- Navigate to the Pull Requests tab in the official GitHub repo. Here, click "New Pull Request" and you will see this.
Here, you will need to click on "compare across forks" to start seeing the branches on your fork. Select your fork in "Head repository" and your branch in "compare" for the source:
- Now you can simply click "Create Pull Request" to start the review process. Alternatively, you can also create a "Draft Pull Request" if the branch is still a work-in-progress.
This wiki is focused on contributing to the Fluid Framework codebase.
For information on using Fluid Framework or building applications on it, please refer to fluidframework.com.
- Submitting Bugs and Feature Requests
-
Contributing to the Repo
- Repo Basics
- Common Workflows and Patterns
- Managing dependencies
- Client Code
- Server Code
- PR Guidelines
- CI Pipelines
- Breaking vs Non-Breaking Changes
- Branches, Versions, and Releases
- Compatibility & Versioning
- Testing
- Debugging
- npm package scopes
- Maintaining API support levels
- Developer Tooling Maintenance
- API Deprecation
- Working with the Website (fluidframework.com)
- Coding Guidelines
- Documentation Guidelines
- CLA