Contributing
Thank you for considering contributing to Hey API. In order to increase the likelihood of your changes being merged, first open an issue if one does not already exist. Once an issue exists, let us know you'd like to work on it. We will confirm whether we're looking to resolve the issue and provide you with guidance if required. This is to ensure our codebase remains in good state and all features contribute to Hey API's objectives.
Development Requirements
Install Dependencies
We use pnpm as our package manager. You can setup and install all dependencies running the following command:
pnpm install
Pull Request Guidelines
If you are unfamiliar with GitHub Pull Requests, please read the following documentation: https://help.github.com/articles/using-pull-requests
Your Pull Request must:
- Address a single issue or add a single item of functionality.
- Contain a clean history of small, incremental, logically separate commits, with no merge commits.
- Use clear commit messages.
- Be possible to merge automatically.
Submitting a Pull Request
- Make your changes in a new git branch:
git checkout -b my-fix-branch main
- Create your patch or feature
- Ensure the builds work by running:
pnpm build
- Ensure the tests will pass by running:
pnpm test
- Ensure the code is formatted by running:
pnpm lint:fix
- Ensure that you create a changeset if required by running:
pnpm changeset
- Commit your changes using a descriptive commit message
After your Pull Request is created, it will automatically be built and tested in GitHub actions. Once successful, it will be ready for review.