You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,18 @@
1
1
# Contributing to `burrow`:
2
-
Forked from Docker's [contributing guidelines](https://github.com/docker/docker/blob/master/CONTRIBUTING.md)
2
+
Forked from Docker's [contributing guidelines](https://github.com/docker/docker/blob/main/CONTRIBUTING.md)
3
3
4
4
## Developer Certificate of Origin
5
5
6
6
Please always include "signed-off-by" in your commit message and note this constitutes a developer certification you are contributing a patch under Apache 2.0. Please find a verbatim copy of the Developer Certificate of Origin in this repository [here](.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md) or on [developercertificate.org](https://developercertificate.org/).
7
7
8
+
## Branches and releases
9
+
10
+
All development happens on 'main'. Any other branches should be considered temporary and should have a corresponding pull request where they are the source to help keep track of them. Such branches can be marked WIP/draft.
11
+
12
+
There is a special branch called 'prereleae' that is solely used to trigger a build of the JS library and docker images with a special prerelease tag based on the commit hash. This can be triggered by force pushing to 'prerelease'. If you would like a prerelease build please ask a maintainer (via an issue or on https://chat.hyperledger.org/channel/burrow) to force push for you. Since this branch may be overwritten at any time it should never be the only home for durable changes.
13
+
14
+
Commits tagged with a 'v'-prefixed semver tag like `v0.11.1` are official releases and will trigger builds of binaries, JS library, and docker images in CI. We will try to make these regularly but will sometimes batch up a few changes and dependency upgrades (particularly Tendermint).
15
+
8
16
## Bug Reporting
9
17
10
18
A great way to contribute to the project is to send a detailed report when you encounter an issue. We always appreciate a well-written, thorough bug report, and will thank you for it!
@@ -17,15 +25,15 @@ Our [ISSUE_TEMPLATE.md](ISSUE_TEMPLATE.md) will autopopulate the new issue.
17
25
18
26
## Contribution Tips and Guidelines
19
27
20
-
### Pull requests are always welcome (to `develop` rather than `master`).
28
+
### Pull requests are always welcome (always based on the `main` branch)
21
29
22
-
Not sure if that typo is worth a pull request? Found a bug and know how to fix it? Do it! We will appreciate it. Any significant improvement should be documented as a GitHub issue or discussed in [The Marmot Den](https://slack.monax.io) Slack community prior to beginning.
30
+
Not sure if that typo is worth a pull request? Found a bug and know how to fix it? Do it! We will appreciate it.
23
31
24
32
We are always thrilled to receive pull requests (and bug reports!) and we do our best to process them quickly.
25
33
26
34
## Conventions
27
35
28
-
Fork the repository and make changes on your fork in a feature branch (branched from develop), create an issue outlining your feature or a bug, or use an open one.
36
+
Fork the repository and make changes on your fork in a feature branch, create an issue outlining your feature or a bug, or use an open one.
29
37
30
38
If it's a bug fix branch, name it something-XXXX where XXXX is the number of the issue.
31
39
If it's a feature branch, create an enhancement issue to announce your intentions, and name it something-XXXX where XXXX is the number of the issue.
@@ -42,22 +50,16 @@ Commit messages must start with a short summary (max. 50 chars) written in the i
42
50
43
51
Code review comments may be added to your pull request. Discuss, then make the suggested modifications and push additional commits to your feature branch.
44
52
45
-
Pull requests must be cleanly rebased on top of develop without multiple branches mixed into the PR.
53
+
Pull requests must be cleanly rebased on top of main without multiple branches mixed into the PR.
46
54
47
-
*Git tip:* If your PR no longer merges cleanly, use `git rebase develop` in your feature branch to update your pull request rather than merge develop.
48
-
49
-
Before you make a pull request, squash your commits into logical units of work using `git rebase -i` and `git push -f`. A logical unit of work is a consistent set of patches that should be reviewed together: for example, upgrading the version of a vendored dependency and taking advantage of its now available new feature constitute two separate units of work. Implementing a new function and calling it in another file constitute a single logical unit of work. The very high majority of submissions should have a single commit, so if in doubt: squash down to one.
55
+
*Git tip:* If your PR no longer merges cleanly, use `git rebase main` in your feature branch to update your pull request rather than merge main.
50
56
51
57
After every commit, make sure the test suite passes. Include documentation changes in the same pull request so that a revert would remove all traces of the feature or fix.
52
58
53
59
### Merge approval
54
60
55
61
We use LGTM (Looks Good To Me) in commands on the code review to indicate acceptance.
56
62
57
-
## Errors and Log Messages Style
58
-
59
-
TODO
60
-
61
63
## Coding Style
62
64
63
65
Unless explicitly stated, we follow all coding guidelines from the Go community. While some of these standards may seem arbitrary, they somehow seem to result in a solid, consistent codebase.
@@ -68,7 +70,7 @@ It is possible that the code base does not currently comply with these guideline
68
70
* All code should follow the guidelines covered in [Effective Go](https://golang.org/doc/effective_go.html) and [Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments).
69
71
* Comment the code. Tell us the why, the history and the context.
70
72
* Document all declarations and methods, even private ones. Declare expectations, caveats and anything else that may be important. If a type gets exported, having the comments already there will ensure it's ready.
71
-
* Variable name length should be proportional to it's context and no longer. noCommaALongVariableNameLikeThisIsNotMoreClearWhenASimpleCommentWouldDo. In practice, short methods will have short variable names and globals will have longer names.
73
+
* Variable name length should be proportional to its context and no longer. noCommaALongVariableNameLikeThisIsNotMoreClearWhenASimpleCommentWouldDo. In practice, short methods will have short variable names and globals will have longer names.
72
74
* No underscores in package names. If you need a compound name, step back, and re-examine why you need a compound name. If you still think you need a compound name, lose the underscore.
73
75
* No utils or helpers packages. If a function is not general enough to warrant its own package, it has not been written generally enough to be a part of a `util` package. Just leave it unexported and well-documented.
74
76
* All tests should run with `go test` and outside tooling should not be required. No, we don't need another unit testing framework. Assertion packages are acceptable if they provide real incremental value.
Hyperledger Burrow is a permissioned Ethereum smart-contract blockchain node. It executes Ethereum EVM and WASM smart contract code (usually written in [Solidity](https://solidity.readthedocs.io)) on a permissioned virtual machine. Burrow provides transaction finality and high transaction throughput on a proof-of-stake [Tendermint](https://tendermint.com) consensus engine.
11
11
@@ -43,7 +43,7 @@ Watch the [Boring into Burrow](https://www.youtube.com/watch?v=OpbjYaGAP4k) talk
43
43
44
44
## JavaScript Client
45
45
46
-
There is a [JavaScript API](https://github.com/hyperledger/burrow/tree/master/js)
46
+
There is a [JavaScript API](https://github.com/hyperledger/burrow/tree/main/js)
47
47
48
48
## Project Roadmap
49
49
@@ -52,6 +52,12 @@ Project information generally updated on a quarterly basis can be found on the [
52
52
## Documentation
53
53
Burrow getting started documentation is available on the [documentation site](https://hyperledger.github.io/burrow) (source markdown files can be found in [docs]()) and programmatic API in [GoDocs](https://godoc.org/github.com/hyperledger/burrow).
We welcome any and all contributions. Read the [contributing file](../.github/CONTRIBUTING.md) for more information on making your first Pull Request to Burrow!
0 commit comments