How to send a zip file to a github PR as an attachment #53948
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi Team,
I have a requirement to send a zip file to a open PR as a comment for the PR reviewer. I tried below curl command but getting
curl -v -X POST \ -H "Authorization: Bearer <Token>" \ -H "Content-Type: application/zip" \ --data-binary "@zip.zip" \ "https://github.xyz.com/api/v3/repos/{username}/{repository}/issues/2/comments"
Getting below error
{ "message": "Problems parsing JSON", "documentation_url": "https://docs.github.com/[email protected]/rest/reference/issues#create-an-issue-comment" }
Verified JSON content inside zip file, it is proper.
Any suggestions or any sample reference to achieve this. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions