diff --git a/settings/common.py b/settings/common.py index 5d62635d..8a52d4e8 100644 --- a/settings/common.py +++ b/settings/common.py @@ -342,7 +342,7 @@ CHANGE_NOTIFICATIONS_MIN_INTERVAL = 0 #seconds # List of functions called for filling correctly the ProjectModulesConfig associated to a project # This functions should receive a Project parameter and return a dict with the desired configuration PROJECT_MODULES_CONFIGURATORS = { - "github": "taiga.github_hook.services.get_config_or_default", + "github": "taiga.github_hook.services.get_or_generate_config", } diff --git a/taiga/github_hook/services.py b/taiga/github_hook/services.py index 99b5df33..a02482af 100644 --- a/taiga/github_hook/services.py +++ b/taiga/github_hook/services.py @@ -22,7 +22,7 @@ from taiga.users.models import User from taiga.base.utils.urls import get_absolute_url -def get_config_or_default(project): +def get_or_generate_config(project): config = project.modules_config.config if config and "github" in config: g_config = project.modules_config.config["github"]