Skip to content

Latest commit

 

History

History
84 lines (50 loc) · 5.25 KB

CONTRIBUTING.md

File metadata and controls

84 lines (50 loc) · 5.25 KB

Contributing

Beerus

To contribute to the project, start with the proper development copy. You may want to use the GitHub interface to fork Beerus and check out your fork.

Legal Notice

When contributing to this project, you must agree that you have authored 100% of the content, have the necessary rights, and that the content you contribute may be provided under the project license.

Versioning

The project uses SemVer for versioning. For the versions available, see the tags on this repository.

Developer Workflow

Changes to the project are proposed through pull requests. The general pull request workflow is as follows:

  1. Fork this project on GitHub and check out your copy of the repository to start contributing.
  2. Ensure your fork is up-to-date and create a topic branch for your feature or bug fix.
  3. Do your changes. Each commit and tag should be signed using your GPG key.
  4. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
  5. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, proper file locations and container parameters.
  6. Increase the version numbers in any example files and the README.md to the new version this Pull Request represents.
  7. You may merge the Pull Request once you have at least one accepting review.

When creating a pull request, its description should reference the corresponding issue ID.

If you've been working on a change for a while, it is very likely that some other changes are already made in the repository. To solve this problem, rebase with upstream/master.

git fetch upstream
git rebase upstream/master
git push origin my-feature-branch --force

Project history should be bisect-able so that when regressions are identified it could be easily to use git bisect to be able to pin-point the exact commit which introduced the regression. This requires that every commit is able to be built and passes all lints and tests. So if your pull request includes multiple commits be sure that each and every commit is able to be built and passes all checks performed by CI.

PR recommendations & requirements

Do not hesitate to publish PRs as drafts first so you can review these one last time before we do.

Make sure all the GitHub Actions checks pass.

Any feat and fix PR should include tests.

Automated contributions bringing little value but forcing us to spend valuable time on these may be treated like spam and closed arbitrarily.

A note on "big" changes

When planning "big" changes to the project, it's encouraged to ask for feedback on an issue before implementing things in code. The created issue should explain, at a minimum:

  • The motivation for such a change.
  • What would be the suggested implementation and what other alternatives were considered.

How big is "big"? As a rule of thumb, if the work spans more than one coding day, it's probably advisable to create an issue first and then work on it after confirmation. However, this may differ depending on the contributor context. I.e. if the author is already a maintainer, the base context will be high and the risk of rejection low. It is probably the opposite in the case of an external, non-habitual contributor. So, the author should use common sense here.

A note on tiny & non-code changes (e.g. typo fixes)

Pull requests with only typo fixes will not be merged. Please raise an issue if you want to inform us about any typos or any other issues not directly related to code or documentation inconsistencies. There is even a crate to automate such tedious typo-fixing activities, please consider contributing your typo fixes there for everyone else to use.

Style Guides

Commit Messages

Commits should be atomic and broken down into logically separate changes. Diffs should also be made easy for reviewers to read and review, so formatting fixes or code moves should not be included in commits with actual code changes.

We are using the Conventional Commits convention for our commit messages. This convention dovetails with SemVer, describing the features, fixes, and breaking changes in commit messages.

Code style

Refer to general coding style guidelines for the Rust programming language for detailed guidance about contributing to the project.

I Have a Question

Before you ask a question, searching for existing Issues that might help you is best. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.

If you still feel the need to ask a question and need clarification, we recommend the following:

  • Open an Issue.
  • Provide as much context as possible about what you're running into.
  • Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.