35 lines
862 B
Python
35 lines
862 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class GitFlowConfig:
|
|
main_branch: str = "main"
|
|
develop_branch: str = "develop"
|
|
remote_name: str = "origin"
|
|
feature_prefix: str = "feature/"
|
|
bugfix_prefix: str = "bugfix/"
|
|
hotfix_prefix: str = "hotfix/"
|
|
release_prefix: str = "release/"
|
|
tag_format: str = "v{version}"
|
|
# Merge-strategie kan later per actie configureerbaar worden
|
|
use_no_ff_for_feature: bool = True
|
|
use_no_ff_for_release: bool = True
|
|
use_no_ff_for_hotfix: bool = True
|
|
|
|
|
|
CONFIG = GitFlowConfig()
|
|
|
|
|
|
def load_config() -> None:
|
|
"""Laad configuratie.
|
|
|
|
Voor nu gebruiken we enkel harde defaults. Later kunnen we hier
|
|
een bestand (bv. yaml/toml) inlezen en `CONFIG` overschrijven.
|
|
"""
|
|
|
|
# TODO: optioneel configuratiebestand ondersteunen.
|
|
return None
|
|
|