From 7bc0ae1629c1fbda579628dbb55c61deef081eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Mon, 3 Feb 2025 18:22:52 +0100 Subject: [PATCH] fix(reana-dev): use chore commit scope when bumping dependencies For commits created by `reana-dev git-upgrade-shared-modules` and `reana-dev git-upgrade-requirements` commands, use "chore" rather than "build" conventional commit scope, so that these commits won't appear in the release news message. The bug fixes or new features that are brought by upgrades are announced in the release news in another way, such as when a feature needs the new shared package or an upgraded version of dependency. The pre-release version bumps can therefore go without a release news item. --- reana/reana_dev/git.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reana/reana_dev/git.py b/reana/reana_dev/git.py index 3d7f889a..b172d7c7 100644 --- a/reana/reana_dev/git.py +++ b/reana/reana_dev/git.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # This file is part of REANA. -# Copyright (C) 2020, 2021, 2023, 2024 CERN. +# Copyright (C) 2020, 2021, 2023, 2024, 2025 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -1296,7 +1296,7 @@ def git_upgrade_shared_modules( def _create_commit_or_amend(components): today = datetime.date.today().isoformat() for c in components: - commit_cmd = f'git commit -m "build(python): bump shared REANA packages as of {today}{get_commit_pr_suffix(c)}"' + commit_cmd = f'git commit -m "chore(master): bump shared REANA packages as of {today}{get_commit_pr_suffix(c)}"' if amend: commit_cmd = "git commit --amend --no-edit" @@ -1382,7 +1382,7 @@ def git_upgrade_requirements(ctx, component, exclude_components): # noqa: D301 run_command(f"git add {PYTHON_REQUIREMENTS_FILE}", component) today = datetime.date.today().isoformat() run_command( - f'git commit -m "build(python): bump all required packages as of {today}{get_commit_pr_suffix(component)}"', + f'git commit -m "chore(master): bump all required packages as of {today}{get_commit_pr_suffix(component)}"', component, )