From f2cdc7beed244bc128e9e58d7b644f970f3f9879 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Thu, 30 May 2024 15:25:34 -0400 Subject: [PATCH] change words --- .../utils/commit_message_formatter_unit_tests.py | 12 ++++++------ library_generation/utils/commit_message_formatter.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library_generation/test/utils/commit_message_formatter_unit_tests.py b/library_generation/test/utils/commit_message_formatter_unit_tests.py index 6ac040c372..c7d7cfcf8d 100644 --- a/library_generation/test/utils/commit_message_formatter_unit_tests.py +++ b/library_generation/test/utils/commit_message_formatter_unit_tests.py @@ -33,7 +33,7 @@ def test_format_commit_message_should_add_library_name_for_conventional_commit( "BEGIN_NESTED_COMMIT", "feat: [example_library] a commit message", "PiperOrigin-RevId: 123456", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], format_commit_message(commits, True), @@ -53,7 +53,7 @@ def test_format_commit_message_should_add_library_name_for_mutliline_conventiona "feat: [example_library] a commit message", "fix: [example_library] an another commit message", "PiperOrigin-RevId: 123456", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], format_commit_message(commits, True), @@ -71,7 +71,7 @@ def test_format_commit_message_should_not_add_library_name_for_nonconvnentional_ [ "BEGIN_NESTED_COMMIT", "PiperOrigin-RevId: 123456", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], format_commit_message(commits, True), @@ -88,7 +88,7 @@ def test_format_commit_message_should_not_add_library_name_if_not_monorepo(self) "BEGIN_NESTED_COMMIT", "feat: a commit message", "PiperOrigin-RevId: 123456", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], format_commit_message(commits, False), @@ -108,7 +108,7 @@ def test_format_commit_message_should_not_add_library_name_for_multiline_commit_ "feat: a commit message", "fix: an another commit message", "PiperOrigin-RevId: 123456", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], format_commit_message(commits, False), @@ -124,7 +124,7 @@ def test_wrap_nested_commit_success(self): "BEGIN_NESTED_COMMIT", "a commit message", "another message", - "Source: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", + "Source Link: [googleapis/googleapis@1234567](https://github.com/googleapis/googleapis/commit/1234567abcdefg)", "END_NESTED_COMMIT", ], wrap_nested_commit(commit, messages), diff --git a/library_generation/utils/commit_message_formatter.py b/library_generation/utils/commit_message_formatter.py index 37783c1083..7d2767d6e6 100644 --- a/library_generation/utils/commit_message_formatter.py +++ b/library_generation/utils/commit_message_formatter.py @@ -63,7 +63,7 @@ def wrap_nested_commit(commit: Commit, messages: List[str]) -> List[str]: result = ["BEGIN_NESTED_COMMIT"] result.extend(messages) result.append( - f"Source: [googleapis/googleapis@{short_sha}](https://github.com/googleapis/googleapis/commit/{commit.hexsha})" + f"Source Link: [googleapis/googleapis@{short_sha}](https://github.com/googleapis/googleapis/commit/{commit.hexsha})" ) result.append("END_NESTED_COMMIT") return result