Thank you for your interest in contributing to Nishiki! This document outlines the guidelines for contributing to this project.
main
: For production use. Only accepts PRs fromdevelop
(andhotfix
in emergencies).staging
: For testing. Only accepts PRs fromdevelop
.develop
: Accepts PRs fromfeature
branches.feature/
: Branches for developing new features or improvements.hotfix/
: Branches for urgent fixes.docs/
: Branches for documentation updates.
- Feature Addition:
feature/<issue_number>-<brief_description>
(develop ⇔ feature) - Hotfix:
hotfix/<issue_number>-<brief_description>
(main ⇔ hotfix) - Documentation Update:
docs/<issue_number>-<brief_description>
(develop ⇔ docs)
Note: <issue_number>-
can be omitted if the modification is not based on an issue.
- feature/42-user-authentication
- hotfix/56-security-vulnerability-fix
- docs/108-update-installation-guide
- Write unit tests for your features.
- Make sure all tests pass locally and on the CI server.
- Update existing tests if you modify code that affects them.
Before you create a Pull Request, please check whether your commits comply with the commit conventions used in this repository.
When you create a commit we kindly ask you to follow the convention
category(scope or module): message
in your commit message while using one of
the following categories:
feat / feature
: all changes that introduce completely new code or new featuresfix
: changes that fix a bug (ideally you will additionally reference an issue if present)refactor
: any code related change that is not a fix nor a featuredocs
: changing existing or creating new documentation (i.e. README, docs for usage of a lib or cli usage)build
: all changes regarding the build of the software, changes to dependencies or the addition of new dependenciestest
: all changes regarding tests (adding new tests or changing existing ones)ci
: all changes regarding the configuration of continuous integration (i.e. github actions, ci system)chore
: all changes to the repository that do not fit into any of the above categories
If you are interested in the detailed specification you can visit https://www.conventionalcommits.org/ or check out the Angular Commit Message Guidelines.
- Create a new branch from the
develop
branch, or from themain
branch if you're working on a hotfix. - Follow the Branch Naming Conventions while naming your branch.
- Work on your changes locally.
- Commit your changes, ensuring to follow the project's commit message conventions.
- Ensure that all tests pass.
- Push your branch to the repository.
- Create a Pull Request against the original branch you branched from.
- Await code review, and address any comments as necessary.
- Fork the repository to your own GitHub account.
- Clone your forked repository locally.
- Create a new branch from the
develop
branch on your fork. - Follow the Branch Naming Conventions while naming your branch.
- Work on your changes locally.
- Commit your changes, ensuring to follow the project's commit message conventions.
- Ensure that all tests pass.
- Push your branch to your forked repository.
- Create a Pull Request against the
develop
branch of the original repository. - Await code review, and address any comments as necessary.