Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Latest commit

 

History

History
70 lines (45 loc) · 1.8 KB

CONTRIBUTING.md

File metadata and controls

70 lines (45 loc) · 1.8 KB

Contributing guide

Requirements

Commit message format

This repository uses Conventional Commits.

Use only following types to create valid commit messages:

  • feat, for a new functionality.
  • fix, for a bug fixes.
  • chore, for everything else (CI/CD, docs, etc)

Also, we would like PRs to contain a single commit and be rebased onto project main branch before submitting.

Test coverage

The project is covered by following types of tests

  • lint tests - test/lint
  • unit tests - test/unit
  • e2e tests - test/e2e

Every PR should provide appropriate amount of testing, corresponding to its scope.

Use just to run test locally.

Development flow.

Although, you could choose your own approach to create branches, develop code and provide new PR, we recommend following.

  1. Fork this project and clone it to local PC.

  2. Add this project as a new remote named upstream.

    git remote add upstream https://github.com/eshepelyuk/apicurio-registry-helm.git
    git fetch upstream
  3. Create a new branch, based on upstream main and push it to your repository.

    git checkout --no-track -b <BRANCH NAME> upstream/main
    git push -u origin <BRANCH NAME>
  4. Develop your code locally, test and commit.

    git commit -am '<COMMIT MESSAGE>'
  5. Before pushing code to origin ensure your working branch is rebased onto upstream/main.

    git fetch upstream
    git rebase -i upstream/main

    During rebase, make your PR to be comprised of a single commit, unless, you really want to provide multiple commits via single PR.

  6. Push your branch and create a PR via GitHub UI.

    git push -u -f origin <BRANCH NAME>