Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tools: Remove hard newlines from notification message.

Vector73e592ff1d821b
diff --git a/tools/notify-if-api-docs-changed b/tools/notify-if-api-docs-changed
index 91aba666c3e..3feadf2e824 100755
--- a/tools/notify-if-api-docs-changed
+++ b/tools/notify-if-api-docs-changed
@@ -52,7 +52,7 @@ def get_changelog_entries() -> str:
if current_feature_level_found:
changelog_entries += line
- return changelog_entries
+ return changelog_entries.replace("\n ", " ")
if __name__ == "__main__":
@@ -62,7 +62,7 @@ if __name__ == "__main__":
changelog_entries = get_changelog_entries()
topic = f"new feature level: {feature_level}"
- content = f"{pull_request} has updated the API documentation for the following endpoints: \n{changelog_entries}."
+ content = f"{pull_request} has updated the API documentation for the following endpoints: \n{changelog_entries}"
github_output = os.environ.get("GITHUB_OUTPUT")
if github_output:
with open(github_output, "a") as f: