Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Make sure you have at least Node.js v14:
node -v
v14.0.0
We use yarn
and advise you to do so while contributing. Get it here.
Start by forking Griffel to your GitHub account. Then clone your fork and install dependencies:
git clone [email protected]:<your-user>/griffel.git
cd griffel
yarn
Add our repo as a git remote so you can pull/rebase your fork with our latest updates:
git remote add upstream [email protected]:microsoft/griffel.git
Pull requests are the greatest contributions, so be sure they are focused in scope and avoid unrelated commits.
-
Create a branch for your feature or fix:
# Move into a new branch for your feature git checkout -b fix/bug
-
If your code passes all the tests, then push your feature branch:
# Test current code yarn test # Build current code yarn build
-
Create a changelog entry
We use beachball to generate changelogs.
# Create new entries yarn change
Note: A change file tells beachball how to increment each package's semantic version (semver) upon publish. The message in the change file will be included in the package release notes, so make it brief but informative.
-
Push the branch for your new feature
git push origin fix/bug
Now open a pull request with a clear title and description.