We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
The issue tracker is the preferred channel for bug reports and submitting pull requests, but please respect the following restrictions:
- Please do not use the issue tracker for personal support requests.
- Please do not derail or troll issues. Keep the discussion on topic and respect the opinions of others.
A bug is a demonstrable and reproducible problem that is caused by the code in the repository. Good bug reports are extremely helpful to the project, so thanks!
Guidelines for bug reports:
-
Use the GitHub issue search — check if the issue has already been reported.
-
Check if the issue has been fixed — try to reproduce the bug using the latest
main
branch in the repository. The latest npm release, isn't always the representative version of the code. -
Isolate the problem — ideally create a isolated example, using a 'vanilla' configuration of your chosen framework. CodeSandbox and StackBlitz offer an easy way to do this.
Use our issue template to help you report bugs, if you're confident the bug is still valid.
Good pull requests are a fantastic help. They should remain focused in scope and avoid containing code and commits unrelated to the problem or feature you're adding.
Please ask first before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
- Clone this repository.
- Create a new feature branch:
git checkout -b my-handle/my-branch-name
. - Configure and install the dependencies:
npm install
- Make your changes and commit them.
- Create a changeset for your changes if your contribution affects distributed code:
npx changeset
- See changesets/changesets for more information.
- Push your branch and open a pull request. Please use the supplied pull request template.
- Wait for CI tests to complete.
- If the tests pass, you should see a status check advising you that a canary build of
@primer/react-brand
has been published, and ready to test in-app. - If the tests fail, review the logs and address any issues.
- If the builds fail for any other reason (as they occasionally do), they may need to be manually restarted.
- If the tests pass, you should see a status check advising you that a canary build of
- Pat yourself on the back and wait for your pull request to be reviewed.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a good commit message.
See RELEASING.md for our release process.