ConnectAI-E / GitMaya

🌊 One repo = one chat, make git flow in chat, next generation gitops for boosting developer-teams productivity, supports feishu, discord and slack
https://gitmaya.com
MIT License
139 stars 11 forks source link

支持飞书传图GitHub #231

Closed freeziyou closed 6 months ago

freeziyou commented 7 months ago
freeziyou commented 7 months ago

207

Leizhenpeng commented 6 months ago

私有仓库 传图那个有解吗?能否先牺牲一点安全性,先考虑基本可用(比如直接把GitHub那边的图片链接发送到飞书这边来) @freeziyou

freeziyou commented 6 months ago

在GitHub上放图片时,会由Github未开放的api上传到服务器(https://github.com/upload/policies/assets),最后返回一个需要用户token验证的图片链接,正是因为Github做了安全性导致无法可用

freeziyou commented 6 months ago

从飞书传图到GitHub公私仓库都没问题,主要是Github私有仓库传图到飞书有问题

Leizhenpeng commented 6 months ago

授权之后的GitMaya机器人也无法访问GitHub私有仓库的图片对吧?

freeziyou commented 6 months ago

没法访问,和林哥探索的唯一方式是拿GitHub personal user token可以访问,但这个只能由用户自己在Github手动创建token,并且权限过大,仅为看图不合理…而且测试其他包括oauth token installation token都没用

Leizhenpeng commented 6 months ago

这个图片的链接可以拿到吧,直接回传到飞书呗

Leizhenpeng commented 6 months ago

不上传飞书图床,直接显示原始链接url ,可行吗? @freeziyou

freeziyou commented 6 months ago

可以做,但这样的话,相当于飞书这边只显示图片链接没显示图片