Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: Use [skip ci] for "automatic adjustments after a release" commit #991

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pontos/release/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
Expand Down
36 changes: 18 additions & 18 deletions tests/release/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading