Skip to content

Commit 954fc1b

Browse files
committed
codebase: Use backticks for branch names in message templates.
1 parent 8203d81 commit 954fc1b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

zulip/integrations/codebase/zulip_codebase_mirror

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,11 @@ def handle_event(event: Dict[str, Any]) -> None:
121121
subject = f"Push to {branch} on {project}"
122122

123123
if deleted_ref:
124-
content = f"{actor_name} deleted branch {branch} from {project}"
124+
content = f"{actor_name} deleted branch `{branch}` from {project}"
125125
else:
126126
if new_ref:
127-
branch = f"new branch {branch}"
128-
content = (
129-
f"{actor_name} pushed {num_commits} commit(s) to {branch} in project {project}:\n\n"
130-
)
127+
branch = f"new branch `{branch}`"
128+
content = f"{actor_name} pushed {num_commits} commit(s) to `{branch}` in project {project}:\n\n"
131129
for commit in raw_props.get("commits"):
132130
ref = commit.get("ref")
133131
url = make_url(f"projects/{project_link}/repositories/{repo_link}/commit/{ref}")

0 commit comments

Comments
 (0)