(issue_number)
| 152 | |
| 153 | |
| 154 | def 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 | |
| 164 | def parse_rss(url: str, proxy_url=''): |