From 4c9e2ef3d4e27e60e1e2216307593e87b289d328 Mon Sep 17 00:00:00 2001 From: AAriam <80158628+AAriam@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:07:40 +0200 Subject: [PATCH] fix bug --- pyproject.toml | 2 +- src/repodynamics/_data/repo/CHANGELOG.md | 0 src/repodynamics/actions/init.py | 7 ++++--- 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 src/repodynamics/_data/repo/CHANGELOG.md diff --git a/pyproject.toml b/pyproject.toml index 32cc1fd3..c410002f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev100" +version = "0.0.0.dev101" name = "RepoDynamics" dependencies = [ "packaging >= 23.2, < 24", diff --git a/src/repodynamics/_data/repo/CHANGELOG.md b/src/repodynamics/_data/repo/CHANGELOG.md deleted file mode 100644 index e69de29b..00000000 diff --git a/src/repodynamics/actions/init.py b/src/repodynamics/actions/init.py index 07f1118e..a61738bb 100644 --- a/src/repodynamics/actions/init.py +++ b/src/repodynamics/actions/init.py @@ -1262,11 +1262,12 @@ def init( logger=None ): for arg_name, arg in (("meta_sync", meta_sync), ("hooks", hooks)): - if arg not in ['report', 'amend', 'commit', 'pull', 'none']: + if arg not in ['report', 'amend', 'commit', 'pull', 'none', '']: raise ValueError( f"Invalid input argument for '{arg_name}': " f"Expected one of 'report', 'amend', 'commit', 'pull', or 'none', but got '{arg}'." ) + return Init( context=context, admin_token=admin_token, @@ -1274,8 +1275,8 @@ def init( package_lint=package_lint, package_test=package_test, website_build=website_build, - meta_sync=meta_sync, - hooks=hooks, + meta_sync=meta_sync or 'none', + hooks=hooks or 'none', website_announcement=website_announcement, website_announcement_msg=website_announcement_msg, logger=logger,