1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00
trezor-firmware/docs/misc/contributing.md

1.3 KiB

Contribute to Trezor Firmware

Please read the general instructions you can find on our wiki.

In this repository your Pull request should follow these criteria:

  • The code is properly tested.
  • Tests must pass on CI.
  • The code is properly formatted. The make command make style_check checks if it is so and you can use make style to do the required changes.
  • Generated files are up-to-date. Use make gen in repository root to make it happen.
  • Commits must have concise commit messages, the imperative mood is preferred (rationale).
  • Multiple commits per PR are allowed, but please do not use reverts etc. - use interactive rebase. Do not use merge (e.g. merge trezor/master into...). Again, use rebase.
  • Do not force push to PRs. If you are implementing some comments from a review use fixup commits (e.g. git commit --fixup HEAD) and push those. After the PR is finally approved autosquash these commits and force push (git rebase -i master --autosquash).
  • Do not resolve review comments. Inform the reviewer that you have fixed the issue (simply comment as "Done" or similar). The reviewer will resolve the discussion after reviewing your fix.