2 changed files with 75 additions and 46 deletions
@ -1,25 +1,34 @@ |
|||||
<h1 align='center'>Contributing</h1> |
<h1 align='center'>Contributing</h1> |
||||
(Even after a recent refactor the code is still a bit sloppy, in a bit of a segwit rush, apologize in advance for any "wtf is this?") |
(Even after a recent refactor the code is still a bit sloppy, in a bit of a segwit rush, apologize in advance for any "wtf is this?") |
||||
|
|
||||
|
## Overview |
||||
|
Please join us on [slack](https://join.slack.com/t/zaphq/shared_invite/enQtMjkyNTAxNDA3MjE2LWE3NGZjZGE5ZmI1NGQ5YTk3MGQzMTdmNDAwYjNhZTJkMWU0ZWZlNzA0MjJiNDBjMzcxYjcyMDMxNWY3OGNhYWQ) and check [open issues](https://github.com/LN-Zap/zap-desktop/issues) to see what contributions are needed before tackling a task to avoid duplicate work. |
||||
|
|
||||
## Pull Requests |
## Pull Requests |
||||
The branch to be PR'd against will be master for the time being. This may change as the repo and contributors grow. |
The `master` branch will be used for all pull requests for the time being. This may change as the repo and contributors grow. |
||||
|
|
||||
|
### Branch Names |
||||
|
|
||||
|
Branch names should start with `feature` or `fix` followed by `/description_of_branch`. |
||||
|
|
||||
|
#### Example |
||||
|
|
||||
Branch names should start with `feature` or `fix` followed by `/description_of_branch` |
|
||||
```bash |
```bash |
||||
# example |
|
||||
git branch feature/list-onchain-txs |
git branch feature/list-onchain-txs |
||||
``` |
``` |
||||
|
|
||||
Commit messages should start with `feature`, `fix`, or `test` followed by `(subject_of_commit)` and ending with `: description_of_commit` |
### Commit Messages |
||||
|
|
||||
|
Commit messages should start with `feature`, `fix`, or `test` followed by `(subject_of_commit)` and ending with `: description_of_commit`. |
||||
|
|
||||
|
#### Example |
||||
|
|
||||
```bash |
```bash |
||||
#example |
|
||||
git commit -m "feature(list-onchain-txs): create hard code mock of onchain-txs list" |
git commit -m "feature(list-onchain-txs): create hard code mock of onchain-txs list" |
||||
``` |
``` |
||||
|
|
||||
## eslint: |
## eslint |
||||
This project has eslint rules and PRs should pass `npm run lint` before being merged. The eslint rules are not final by any means and can be changed if necessary |
This project has eslint rules and pull requests should pass `npm run lint` before being merged. The eslint rules are not final by any means and can be changed if necessary |
||||
|
|
||||
## Tests: |
|
||||
Tests should try to be written for every feature and fix. With segwit activating soon and the demand for Zap rising rapid development will naturally leave some code untested but we should all try our best. |
|
||||
|
|
||||
PRs should pass `npm run test` before they are merged |
## Tests |
||||
|
Tests should try to be written for every feature/fix and pass `npm run test` before being merged. With the demand for the Lightning Network and Zap rising, rapid development will naturally leave some code untested but we should all try our best. |
Loading…
Reference in new issue