Skip to content
This repository was archived by the owner on May 13, 2022. It is now read-only.

Commit 242ed8a

Browse files
author
Casey Kuhlman
authored
Merge pull request #1458 from hyperledger/develop-to-prerelease
Implement repo common structure and update contributing guidelines
2 parents 87144bf + 2a80412 commit 242ed8a

File tree

14 files changed

+229
-73
lines changed

14 files changed

+229
-73
lines changed

.github/CONTRIBUTING.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# 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)
33

44
## Developer Certificate of Origin
55

66
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/).
77

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+
816
## Bug Reporting
917

1018
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.
1725

1826
## Contribution Tips and Guidelines
1927

20-
### Pull requests are always welcome (to `develop` rather than `master`).
28+
### Pull requests are always welcome (always based on the `main` branch)
2129

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.
2331

2432
We are always thrilled to receive pull requests (and bug reports!) and we do our best to process them quickly.
2533

2634
## Conventions
2735

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.
2937

3038
If it's a bug fix branch, name it something-XXXX where XXXX is the number of the issue.
3139
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
4250

4351
Code review comments may be added to your pull request. Discuss, then make the suggested modifications and push additional commits to your feature branch.
4452

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.
4654

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.
5056

5157
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.
5258

5359
### Merge approval
5460

5561
We use LGTM (Looks Good To Me) in commands on the code review to indicate acceptance.
5662

57-
## Errors and Log Messages Style
58-
59-
TODO
60-
6163
## Coding Style
6264

6365
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
6870
* 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).
6971
* Comment the code. Tell us the why, the history and the context.
7072
* 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.
7274
* 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.
7375
* 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.
7476
* 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.

.github/workflows/master.yaml renamed to .github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: master
1+
name: main
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66

77
jobs:
88
cover:

.github/workflows/develop.yaml renamed to .github/workflows/prerelease.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: develop
1+
# Force push to 'prerelease' to get a JS/docker build for testing etc
2+
name: prerelease
23
on:
34
push:
45
branches:
5-
- develop
6+
- prerelease
67
tags-ignore:
78
- 'v*'
89

.github/workflows/test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
unit:
@@ -17,7 +17,7 @@ jobs:
1717
- run: git fetch --unshallow --prune
1818
- run: make test
1919
- run: make build
20-
- uses: actions/upload-artifact@master
20+
- uses: actions/upload-artifact@main
2121
with:
2222
name: burrow
2323
path: bin
@@ -52,7 +52,7 @@ jobs:
5252
needs: unit
5353
steps:
5454
- uses: actions/checkout@v2
55-
- uses: actions/download-artifact@master
55+
- uses: actions/download-artifact@main
5656
with:
5757
name: burrow
5858
path: bin
@@ -70,7 +70,7 @@ jobs:
7070
- uses: actions/setup-node@v2
7171
with:
7272
node-version: '14'
73-
- uses: actions/download-artifact@master
73+
- uses: actions/download-artifact@main
7474
with:
7575
name: burrow
7676
path: bin
@@ -85,7 +85,7 @@ jobs:
8585
needs: unit
8686
steps:
8787
- uses: actions/checkout@v2
88-
- uses: actions/download-artifact@master
88+
- uses: actions/download-artifact@main
8989
with:
9090
name: burrow
9191
path: bin
@@ -100,7 +100,7 @@ jobs:
100100
needs: unit
101101
steps:
102102
- uses: actions/checkout@v2
103-
- uses: actions/download-artifact@master
103+
- uses: actions/download-artifact@main
104104
with:
105105
name: burrow
106106
path: bin
@@ -118,7 +118,7 @@ jobs:
118118
- uses: actions/setup-node@v2
119119
with:
120120
node-version: '14'
121-
- uses: actions/download-artifact@master
121+
- uses: actions/download-artifact@main
122122
with:
123123
name: burrow
124124
path: bin

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354

355355
### Added
356356
- [EVM] Implemented [CREATE2 opcode](https://eips.ethereum.org/EIPS/eip-1014)
357-
- [EVM] Implemented [EXTCODEHASH opcode](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1052.md)
357+
- [EVM] Implemented [EXTCODEHASH opcode](https://github.com/ethereum/EIPs/blob/main/EIPS/eip-1052.md)
358358
- [Accounts] Add account GetStats to query endpoint
359359
- [Config] Expose AddrBookStrict from Tendermint
360360
- [Deploy] burrow deploy now prints events generated during transactions

docs/ADRs/adr-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ discussions-to: https://chat.hyperledger.org/channel/burrow-contributors
55
status: Draft
66
type: Meta
77
author: The Burrow's marmots and others
8-
https://github.com/hyperledger/burrow/ADRs/blob/master/ADRs/adr-1.md
8+
https://github.com/hyperledger/burrow/ADRs/blob/main/ADRs/adr-1.md
99
created: 2018-10-09
1010
---
1111

docs/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# [Hyperledger Burrow](https://hyperledger.github.io/burrow)
22

3-
[![CI](https://github.com/hyperledger/burrow/workflows/master/badge.svg)](https://launch-editor.github.com/actions?workflowID=master&event=push&nwo=hyperledger%2Fburrow)
3+
[![CI](https://github.com/hyperledger/burrow/workflows/main/badge.svg)](https://launch-editor.github.com/actions?workflowID=main&event=push&nwo=hyperledger%2Fburrow)
44
[![version](https://img.shields.io/github/tag/hyperledger/burrow.svg)](https://github.com/hyperledger/burrow/releases/latest)
55
[![GoDoc](https://godoc.org/github.com/burrow?status.png)](https://godoc.org/github.com/hyperledger/burrow)
66
[![license](https://img.shields.io/github/license/hyperledger/burrow.svg)](../LICENSE.md)
77
[![LoC](https://tokei.rs/b1/github/hyperledger/burrow?category=lines)](https://github.com/hyperledger/burrow)
8-
[![codecov](https://codecov.io/gh/hyperledger/burrow/branch/master/graph/badge.svg)](https://codecov.io/gh/hyperledger/burrow)
8+
[![codecov](https://codecov.io/gh/hyperledger/burrow/branch/main/graph/badge.svg)](https://codecov.io/gh/hyperledger/burrow)
99

1010
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.
1111

@@ -43,7 +43,7 @@ Watch the [Boring into Burrow](https://www.youtube.com/watch?v=OpbjYaGAP4k) talk
4343

4444
## JavaScript Client
4545

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)
4747

4848
## Project Roadmap
4949

@@ -52,6 +52,12 @@ Project information generally updated on a quarterly basis can be found on the [
5252
## Documentation
5353
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).
5454

55+
## Releases
56+
57+
- **Burrow binaries**: https://github.com/hyperledger/burrow/releases
58+
- **Burrow.js**: https://www.npmjs.com/package/@hyperledger/burrow
59+
- **Docker**: https://hub.docker.com/repository/docker/hyperledger/burrow
60+
5561
## Contribute
5662

5763
We welcome any and all contributions. Read the [contributing file](../.github/CONTRIBUTING.md) for more information on making your first Pull Request to Burrow!

docs/deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The Burrow deploy toolkit can do a number of things:
1111
* create proposals or vote for a proposal
1212

1313
burrow deploy needs a script to its commands. This script format bares some similarity to [ansible](https://www.ansible.com/). It
14-
is in yaml format. The top level structure is an array of [jobs](https://github.com/hyperledger/burrow/blob/master/deploy/def/job.go).
15-
The different job types are [defined here](https://github.com/hyperledger/burrow/blob/master/deploy/def/jobs.go).
14+
is in yaml format. The top level structure is an array of [jobs](https://github.com/hyperledger/burrow/blob/main/deploy/def/job.go).
15+
The different job types are [defined here](https://github.com/hyperledger/burrow/blob/main/deploy/def/jobs.go).
1616

1717
You can invoke burrow from the command line:
1818

docs/developers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports)
88
- [protoc](http://google.github.io/proto-lens/installing-protoc.html) (libprotoc 3.7.1)
99

10-
Please also refer to our [contributing guidelines](https://github.com/hyperledger/burrow/blob/master/.github/CONTRIBUTING.md).
10+
Please also refer to our [contributing guidelines](https://github.com/hyperledger/burrow/blob/main/.github/CONTRIBUTING.md).
1111

1212
## Building
1313

@@ -25,9 +25,9 @@ Install protoc and run `make protobuf_deps`. If you make any changes to the prot
2525
## Releasing
2626

2727
* First of all make sure everyone is happy with doing a release now.
28-
* Update project/history.go with the latest releases notes and version. Run `make CHANGELOG.md NOTES.md` and make sure this is merged to master.
29-
* On the master branch, run `make ready_for_pull_request`. Check for any modified files.
30-
* Once master is update to date, switch to master locally run `make tag_release`. This will push the tag which kicks of the release build.
28+
* Update project/history.go with the latest releases notes and version. Run `make CHANGELOG.md NOTES.md` and make sure this is merged to main.
29+
* On the main branch, run `make ready_for_pull_request`. Check for any modified files.
30+
* Once main is update to date, switch to main locally run `make tag_release`. This will push the tag which kicks of the release build.
3131
* Optionally send out email on hyperledger burrow mailinglist. Agreements network email should be sent out automatically.
3232

3333
## Proposals

0 commit comments

Comments
 (0)