Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zulip/integrations/git/post-receive
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def git_commit_range(oldrev: str, newrev: str) -> str:
if hasattr(config, "format_commit_message"):
commits += config.format_commit_message(author_email, subject, commit_id)
else:
commits += f"!avatar({author_email}) {subject}\n"
commits += f"* {subject} (by {author_email})\n"
return commits


Expand Down
4 changes: 2 additions & 2 deletions zulip/integrations/git/zulip_git_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def commit_notice_destination(repo: str, branch: str, commit: str) -> Optional[D
# common customization is to include a link to the commit in your
# graphical repository viewer, e.g.
#
# return '!avatar(%s) [%s](https://example.com/commits/%s)\n' % (author, subject, commit_id)
# return '* [%s](https://example.com/commits/%s) (by %s)\n' % (subject, commit_id, author)
def format_commit_message(author: str, subject: str, commit_id: str) -> str:
return f"!avatar({author}) {subject}\n"
return f"* {subject} (by {author})\n"


## If properly installed, the Zulip API should be in your import
Expand Down
Loading