Improve GH messages
parent
1bb9158cfa
commit
0c0e7961c8
|
@ -96,8 +96,8 @@ class PushEventHook(BaseEventHook):
|
||||||
commit_id and commit_url and commit_message):
|
commit_id and commit_url and commit_message):
|
||||||
comment = _("Status changed by [@{github_user_name}]({github_user_url} "
|
comment = _("Status changed by [@{github_user_name}]({github_user_url} "
|
||||||
"\"See @{github_user_name}'s GitHub profile\") "
|
"\"See @{github_user_name}'s GitHub profile\") "
|
||||||
"from GitHub commit [#{commit_id}]({commit_url} "
|
"from GitHub commit [{commit_id}]({commit_url} "
|
||||||
"\"See commit '#{commit_id}: {commit_message}'\").").format(
|
"\"See commit '{commit_id} - {commit_message}'\").").format(
|
||||||
github_user_name=github_user_name,
|
github_user_name=github_user_name,
|
||||||
github_user_url=github_user_url,
|
github_user_url=github_user_url,
|
||||||
commit_id=commit_id[:7],
|
commit_id=commit_id[:7],
|
||||||
|
@ -157,8 +157,8 @@ class IssuesEventHook(BaseEventHook):
|
||||||
if number and subject and github_user_name and github_user_url:
|
if number and subject and github_user_name and github_user_url:
|
||||||
comment = _("Issue created by [@{github_user_name}]({github_user_url} "
|
comment = _("Issue created by [@{github_user_name}]({github_user_url} "
|
||||||
"\"See @{github_user_name}'s GitHub profile\") "
|
"\"See @{github_user_name}'s GitHub profile\") "
|
||||||
"from GitHub.\nOrigin GitHub issue: [{number}: {subject}]({github_url} "
|
"from GitHub.\nOrigin GitHub issue: [gh#{number} - {subject}]({github_url} "
|
||||||
"\"Go to '{number}: {subject}'\"):\n\n"
|
"\"Go to 'gh#{number} - {subject}'\"):\n\n"
|
||||||
"{description}").format(github_user_name=github_user_name,
|
"{description}").format(github_user_name=github_user_name,
|
||||||
github_user_url=github_user_url,
|
github_user_url=github_user_url,
|
||||||
number=number,
|
number=number,
|
||||||
|
@ -200,8 +200,8 @@ class IssueCommentEventHook(BaseEventHook):
|
||||||
if number and subject and github_user_name and github_user_url:
|
if number and subject and github_user_name and github_user_url:
|
||||||
comment = _("Comment by [@{github_user_name}]({github_user_url} "
|
comment = _("Comment by [@{github_user_name}]({github_user_url} "
|
||||||
"\"See @{github_user_name}'s GitHub profile\") "
|
"\"See @{github_user_name}'s GitHub profile\") "
|
||||||
"from GitHub.\nOrigin GitHub issue: [{number}: {subject}]({github_url} "
|
"from GitHub.\nOrigin GitHub issue: [gh#{number} - {subject}]({github_url} "
|
||||||
"\"Go to '{number}: {subject}'\")\n\n"
|
"\"Go to 'gh#{number} - {subject}'\")\n\n"
|
||||||
"{message}").format(github_user_name=github_user_name,
|
"{message}").format(github_user_name=github_user_name,
|
||||||
github_user_url=github_user_url,
|
github_user_url=github_user_url,
|
||||||
number=number,
|
number=number,
|
||||||
|
|
Loading…
Reference in New Issue