utils.github_webhook: _format_star(): return count of star and forks only, do not include the time starred at

This commit is contained in:
Dash Eclipse
2021-04-22 15:31:22 +00:00
parent 62afb6828b
commit 9091fd2f0f
+1 -4
View File
@@ -170,10 +170,7 @@ async def _format_push(payload: dict) -> str:
async def _format_star(payload: dict) -> str:
time = payload['starred_at']
text = [f"\u2192 starred at <code>{time}</code>"] if time else []
text.append(await _get_repo_star_and_fork(payload['repository']))
return "\n".join(text)
return await _get_repo_star_and_fork(payload['repository'])
async def _get_event_title(event: str, payload: dict) -> str: