- Writing custom git flow scripts - a start

This commit is contained in:
Josako
2025-12-11 09:27:21 +01:00
parent 0f8bda0aef
commit fe9fc047ff
14 changed files with 720 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
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