Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 2.16 KB

CONTRIBUTING.md

File metadata and controls

54 lines (39 loc) · 2.16 KB

Contributing

Guidelines

  • Node 10 LTS: HAP-NodeJS has a minimum Node version requirement of 10.17.0. Pull requests MUST NOT require a Node version greater than that unless the feature is enabled/backported via [TypeScript][link-typescript].

  • Add tests: All pull requests SHOULD include unit tests to ensure the change works as expected and to prevent regressions. Any pull request containing a bug fix SHOULD include a regression test for the given fix.

  • Document any change in behaviour: Make sure any documentation is kept up-to-date (JSDoc as well as possible documentation in the Wiki).

  • Consider our release cycle: Before doing any pull request, please read through our concept for release cycles. Especially the section regarding our Git Workflow.

  • One pull request per feature: If you want to do more than one thing, send multiple pull requests. Otherwise, your pull request could be rejected.

  • Send coherent history: Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please rebase or squash them before submitting.

Running tests

In order to contribute, you'll need to checkout the source from GitHub and install dependencies using npm:

git clone https://github.com/homebridge/HAP-NodeJS.git
cd HAP-NodeJS
npm install
npm test

Reporting a security vulnerability

See SECURITY.md

Happy coding!