- Writing custom git flow scripts - a start
This commit is contained in:
34
scripts/git/core/config.py
Normal file
34
scripts/git/core/config.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user