From 386b428feab3c9a8fceba216599b19bcbe4393b5 Mon Sep 17 00:00:00 2001 From: Arturo Guridi Date: Tue, 14 Apr 2026 17:56:52 +0200 Subject: [PATCH 1/2] fix: add conventional commit prefix to message --- coverage_comment/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage_comment/storage.py b/coverage_comment/storage.py index 764e747a..5ed93ea0 100644 --- a/coverage_comment/storage.py +++ b/coverage_comment/storage.py @@ -22,7 +22,7 @@ "GIT_COMMITTER_NAME": GITHUB_ACTIONS_BOT_NAME, "GIT_COMMITTER_EMAIL": GITHUB_ACTIONS_BOT_EMAIL, } -GIT_COMMIT_MESSAGE = "Update coverage data" +GIT_COMMIT_MESSAGE = "ci: Update coverage data" @contextlib.contextmanager From 510297379cc27a0d06d41d2c310e665ae8ba50a0 Mon Sep 17 00:00:00 2001 From: Arturo Guridi Date: Tue, 14 Apr 2026 18:04:05 +0200 Subject: [PATCH 2/2] fix: updated tests --- tests/integration/test_main.py | 6 +++--- tests/unit/test_storage.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 4ae8368b..7427dec9 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -623,7 +623,7 @@ def test_action__push__default_branch( git.register("git add htmlcov")() git.register("git add README.md")() git.register("git diff --staged --exit-code")(exit_code=1) - git.register("git commit --message Update coverage data")() + git.register("git commit --message ci: Update coverage data")() git.register("git push origin python-coverage-comment-action-data")() git.register("git switch foo")() @@ -692,7 +692,7 @@ def test_action__pull_request_closed_merged( git.register("git add htmlcov")() git.register("git add README.md")() git.register("git diff --staged --exit-code")(exit_code=1) - git.register("git commit --message Update coverage data")() + git.register("git commit --message ci: Update coverage data")() git.register("git push origin python-coverage-comment-action-data")() git.register("git switch foo")() @@ -734,7 +734,7 @@ def test_action__push__default_branch__private( git.register("git add badge.svg")() git.register("git add README.md")() git.register("git diff --staged --exit-code")(exit_code=1) - git.register("git commit --message Update coverage data")() + git.register("git commit --message ci: Update coverage data")() git.register("git push origin python-coverage-comment-action-data")() git.register("git switch foo")() diff --git a/tests/unit/test_storage.py b/tests/unit/test_storage.py index dc359491..8825d515 100644 --- a/tests/unit/test_storage.py +++ b/tests/unit/test_storage.py @@ -104,7 +104,7 @@ def test_commit_operations(git, in_tmp_path): # (yes, it's missing the quotes, but this is just an artifact from our test # double) git.register( - "git commit --message Update coverage data", + "git commit --message ci: Update coverage data", env={ "GIT_AUTHOR_NAME": "github-actions", "GIT_AUTHOR_EMAIL": "41898282+github-actions[bot]@users.noreply.github.com",