General Guidelines
Some general guidelines for contributing to this project.
Code of Conduct
Check out our code of conduct here.
Git Messages
Use conventional commits
with the following types: build, chore, ci, docs, feat, fix, refactor,
revert, style, test
Format
Each commit message should consist of a type, an optional scope, a subject and an optional issue number.
type(scope): subject #issue-number
Types
The type should answer the Question ‘What kind of change was made?’, e.g. a fix or a new CI workflow.
The type must be one of the following:
feat: A new feature in the software the user usesfix: A bug fix in the software the user usesdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space, formatting, …)refactor: A code change that neither fixes a bug nor adds a featuretest: Adding missing tests or correcting existing testsbuild: Changes that affect the build system or external dependenciesci: Changes to CI configuration files and scriptschore: Other changes that do not modify source or test filesrevert: Reverts a previous commit
Scopes
The scope should answer the question ‘Where in the codebase was the change made?’, e.g. in the API or in the authentication module.
Scopes are more fluid than types and are thus not handled as strictly. Some example scopes are:
overview: A specific part of the frontendshared: Shared services or componentsapi: Changes in a DTO or controllerservice: Changes in some validation or business servicepersistence: Changes in a persistence servicedb: Anything related to database schemas or migrationsdeps: Dependency updates
Git Messages Examples
feat: Allow users to upload a profile picturefix(api): Correctly handle null values in user endpoint #123docs: Update README with setup instructions #45chore(deps): Upgrade project dependencies #78
Git Branching
- Branches should be written in lowercase characters, hyphens and numbers.
- Each branch should also have a prefix like this
feature/,bug/, … . - If a branch is connected to an issue, the issue number should be included
after the prefix. For example
feature/1829-...for the issue 1829.
Prefix
The prefix should be one of the following:
feature: A new feature in the software the user uses or everything that cannot be placed under another categorybug: A bug fix in the software the user usesdocs: Documentation only changesrenovate: Reserved for the Renovate bot
Git Branching Examples
bug/1571-inconsistent-auto-calculation-on-metric-keyresultsfeature/18-create-member-viewbug/remove-wrong-reference(this branch does not have an associated ticket)docs/12-add-missing-db-setup
Pull Requests (PR)
- PR description: Add any needed additional context to the PR description.
- Mark your PR as a draft: If the PR is not yet ready for a review, mark it as a draft.