MCPcopy Create free account
hub / github.com/Tyaoo/picker / push_comment

Function push_comment

yarb.py:154–161  ·  view source on GitHub ↗
(issue_number)

Source from the content-addressed store, hash-verified

152
153
154def push_comment(issue_number):
155 issue = json.loads(popen(f"gh issue view {issue_number} --json title,url,comments"))
156 issue_title = issue["title"].lstrip(f"[{today}]").strip()
157
158 comment = issue["comments"][-1]
159 text = f"{comment['author']['login']} 评论了 [{issue_title}]({issue['url']}): \n\n" + comment["body"]
160 for bot in picker_bots:
161 bot.send_raw(f"{comment['author']['login']} 评论了 {issue_title}", text)
162
163
164def parse_rss(url: str, proxy_url=''):

Callers 1

yarb.pyFile · 0.85

Calls 2

popenFunction · 0.85
send_rawMethod · 0.45

Tested by

no test coverage detected