reply.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ghutil 作者: jwodder 项目源码 文件源码
def cli(issue, file):
    """
    Comment on an issue/PR.

    If a file is given on the command line, its contents will be used as the
    comment body.  Otherwise, an editor will be opened for you to type your
    comment.
    """
    if file is None:
        body = click.edit()
        if body is None:
            click.echo('No text entered; exiting')
    else:
        body = file.read()
    issue.comments.post(json={"body": body})
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号