From d7f417ca1748392844c1426281fb627126d67acd Mon Sep 17 00:00:00 2001 From: Jaspar S Date: Mon, 4 Mar 2024 09:37:13 +0100 Subject: [PATCH] Change: Use for "automatic adjustments after a release" commit (#991) Change: Use for automatic adjustments after a release --- pontos/release/create.py | 2 +- tests/release/test_create.py | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/pontos/release/create.py b/pontos/release/create.py index 2436fb2ea..0d525d3e9 100644 --- a/pontos/release/create.py +++ b/pontos/release/create.py @@ -347,7 +347,7 @@ async def async_run( # type: ignore[override] # check if files have been modified and create a commit status = list(self.git.status()) if status: - commit_msg = f"""Automatic adjustments after release + commit_msg = f"""Automatic adjustments after release [skip ci] * Update to version {next_version} """ diff --git a/tests/release/test_create.py b/tests/release/test_create.py index 6a7597537..cb3175852 100644 --- a/tests/release/test_create.py +++ b/tests/release/test_create.py @@ -232,7 +232,7 @@ def test_release_version( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.0.dev1\n", verify=False, gpg_signing_key="1234", @@ -338,7 +338,7 @@ def test_release_with_repository( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.0.dev1\n", verify=False, gpg_signing_key="1234", @@ -442,7 +442,7 @@ def test_initial_release_version( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.1.dev1\n", verify=False, gpg_signing_key="1234", @@ -554,7 +554,7 @@ def test_release_patch( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.0.dev1\n", verify=False, gpg_signing_key="1234", @@ -666,7 +666,7 @@ def test_release_calendar( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" f"* Update to version {next_version}\n", verify=False, gpg_signing_key="1234", @@ -780,7 +780,7 @@ def test_release_minor( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.1.1.dev1\n", verify=False, gpg_signing_key="1234", @@ -892,7 +892,7 @@ def test_release_major( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.1.dev1\n", verify=False, gpg_signing_key="1234", @@ -1002,7 +1002,7 @@ def test_release_alpha( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2a2.dev1\n", verify=False, gpg_signing_key="1234", @@ -1114,7 +1114,7 @@ def test_release_beta( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2b2.dev1\n", verify=False, gpg_signing_key="1234", @@ -1226,7 +1226,7 @@ def test_release_release_candidate( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2rc2.dev1\n", verify=False, gpg_signing_key="1234", @@ -1853,7 +1853,7 @@ def test_release_to_specific_git_remote( git_instance_mock.add.assert_called_with(Path("MyProject.conf")) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2.dev1\n", verify=False, gpg_signing_key="1234", @@ -1950,7 +1950,7 @@ def test_release_without_git_prefix( git_instance_mock.add.assert_called_with(Path("MyProject.conf")) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2.dev1\n", verify=False, gpg_signing_key="1234", @@ -2049,7 +2049,7 @@ def test_release_github_api( git_instance_mock.add.assert_called_with(Path("MyProject.conf")) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2.dev1\n", verify=False, gpg_signing_key="1234", @@ -2148,7 +2148,7 @@ def test_release_github_api_pre_release( git_instance_mock.add.assert_called_with(Path("MyProject.conf")) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.1a1+dev1\n", verify=False, gpg_signing_key="1234", @@ -2204,7 +2204,7 @@ def test_release_with_go_project( GoVersionCommand.version_file_path ) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.3.dev1\n", verify=False, gpg_signing_key="1234", @@ -2349,7 +2349,7 @@ def test_release_with_changelog( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.0.dev1\n", verify=False, gpg_signing_key="1234", @@ -2436,7 +2436,7 @@ def test_release_local( git_instance_mock.add.assert_called_with(Path("MyProject.conf")) git_instance_mock.commit.assert_called_with( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 0.0.2.dev1\n", verify=False, gpg_signing_key="1234", @@ -2540,7 +2540,7 @@ def test_release_enforce_github_release( gpg_signing_key="1234", ), call( - "Automatic adjustments after release\n\n" + "Automatic adjustments after release [skip ci]\n\n" "* Update to version 1.0.0.dev1\n", verify=False, gpg_signing_key="1234",