From 1ed819fa612f16f22bb6f9381b96f23c99951e59 Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Tue, 18 Mar 2025 14:37:20 -0700 Subject: [PATCH 1/2] fix: CG-12124 use codegen-sh[bot] as commiter --- src/codegen/git/configs/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/git/configs/constants.py b/src/codegen/git/configs/constants.py index d8483c60a..94ed8c9cc 100644 --- a/src/codegen/git/configs/constants.py +++ b/src/codegen/git/configs/constants.py @@ -1,5 +1,5 @@ """Git related constants""" -CODEGEN_BOT_NAME = "codegen-bot" -CODEGEN_BOT_EMAIL = "team+codegenbot@codegen.sh" +CODEGEN_BOT_NAME = "codegen-sh[bot]" +CODEGEN_BOT_EMAIL = "131295404+codegen-sh[bot]@users.noreply.github.com" CODEOWNERS_FILEPATHS = [".github/CODEOWNERS", "CODEOWNERS", "docs/CODEOWNERS"] From ab468acdd25b342666c4440d8ecbd19e8e939662 Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Tue, 18 Mar 2025 14:40:24 -0700 Subject: [PATCH 2/2] fix test --- .../codegen/runner/test_create_branch_with_grouping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/codegen/runner/test_create_branch_with_grouping.py b/tests/integration/codegen/runner/test_create_branch_with_grouping.py index fb37b2a7a..20ef216a2 100644 --- a/tests/integration/codegen/runner/test_create_branch_with_grouping.py +++ b/tests/integration/codegen/runner/test_create_branch_with_grouping.py @@ -48,7 +48,7 @@ def test_create_branch_with_grouping(codebase_client: CodebaseClient, git_repo_c assert remote_branch is not None assert remote_branch.name == branch.head_ref assert remote_branch.commit.commit.message == f"[Codegen] {commit_msg}" - assert remote_branch.commit.commit.author.name == "codegen-bot" + assert remote_branch.commit.commit.author.name == "codegen-sh[bot]" comparison = git_repo_client.repo.compare(base=branch.base_branch, head=branch.head_ref) assert "+🌈" in comparison.files[0].patch