MCPcopy Create free account
hub / github.com/dashezup/github-webhook-to-telegram / _format_create

Function _format_create

utils/github_webhook.py:92–97  ·  view source on GitHub ↗
(payload: dict)

Source from the content-addressed store, hash-verified

90
91
92async def _format_create(payload: dict) -> str:
93 return "\u2192 <a href=\"{url}\">{ref_type}: {ref}</a>".format(
94 url=f"{payload['repository']['html_url']}/tree/{payload['ref']}",
95 ref_type=payload['ref_type'],
96 ref=payload['ref']
97 )
98
99
100async def _format_delete(payload: dict) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected