Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.86 KB

CONTRIBUTING.md

File metadata and controls

52 lines (35 loc) · 2.86 KB

Thank you for your interest to contribute to Hyperledger Cactus! 🎉

First things first, please review the Hyperledger Code of Conduct before participating.

There are many ways to contribute to Hyperledger Cactus, both as a user and as a developer.

As a user, this can include:

As a developer:

Completing a PR

To protect the Hyperledger Cactus source code, GitHub pull requests are accepted from forked repositories only. There are also quality standards identified and documented here that will be enhanced over time.

  1. Fork hyperledger/cactus via Github UI
  2. Clone the fork to your local machine
  3. Complete the desired changes and where possible test locally (more detail to come here)
  4. Commit your changes
    1. Make sure you sign your commit using git commit -s for more information see here
    2. Make sure your commit message follows Conventional Commits syntax; this aids in release notes generation
  5. Push your changes to your master
  6. Initiate a pull request from your fork to the base repository
  7. Await CI, DCO & linting quality checks, as well as any feedback from reviewers

Adding a new public npm dependency to one of the packages:

For example web3 can be added as a dependency to the besu ledger connector plugin's package this way:

npx lerna add web3@latest --scope '*/*plugin-ledger-connector-besu' --exact # [--dev] [--peer]

If you are adding a development dependency you can use the --dev option and --peer for a peer dependency.

Adding a sibling package npm dependency to one of the packages:

For example the cactus-test-tooling can be added as a dev dependency to the besu ledger connector plugin's package this way:

npx lerna add @hyperledger/cactus-test-tooling --scope '*/*plugin-ledger-connector-besu' --exact --dev

Or add the common library to allow you the usage of the logger for example:

npx lerna add @hyperledger/cactus-common --scope '*/*plugin-ledger-connector-quorum' --exact --dev