简体   繁体   English

是否可以通过 API 将文件附加到 GitHub 问题?

[英]Is it possible to attach a file to a GitHub Issue via the API?

I would like to create a GitHub issue with an attached excel spreadsheet via the GitHub API.我想通过 GitHub API 创建一个带有附加 excel 电子表格的 GitHub 问题。 I can successfully create the issue, https://developer.github.com/v3/issues/ but can't find any info on how to upload a file with the API.我可以成功地创建问题, https://developer.github.com/v3/issues/但找不到有关如何使用 API 上传文件的任何信息。 I just need the file connected to the issue, I'm not picky if it's in the original issue post, or uploaded as a comment.我只需要与问题相关的文件,如果它在原始问题帖子中,或者作为评论上传,我并不挑剔。

Is this possible?这可能吗? I figure not since I can't find docs, but wanted to check.我想不是因为我找不到文档,但想检查一下。

At this time, there is no way to do that from the GitHub API.目前,无法从 GitHub API 执行此操作。 Follow https://github.com/isaacs/github/issues/1133关注https://github.com/isaacs/github/issues/1133

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM