Skip to content

Commit

Permalink
change words
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed May 30, 2024
1 parent 7aa4828 commit f2cdc7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion library_generation/utils/commit_message_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2cdc7b

Please sign in to comment.