Is it possible to attach a file to a GitHub Issue via the API?
Asked Answered
K

2

7

I would like to create a GitHub issue with an attached excel spreadsheet via the GitHub API. 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. 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.

Klansman answered 14/7, 2017 at 0:19 Comment(2)
This and this will answer your questionStator
I saw both of those answers, the first is basically "no" but is a year old so I was hoping maybe things have changed. The second doesn't make a lot of sense, but the user seems to be uploading a file to a repoKlansman
D
4

I came across this command line tool that uses the private API to do this: https://github.com/j178/github-s3

Derward answered 6/8, 2023 at 11:47 Comment(0)
V
0

At this time, there is no way to do that from the GitHub API. Follow https://github.com/isaacs/github/issues/1133

Vespucci answered 12/1, 2022 at 16:11 Comment(2)
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.Brusa
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From ReviewVirtuous

© 2022 - 2024 — McMap. All rights reserved.