Discussions GraphQL API: how to add or include attachments? #121412
Replies: 3 comments 2 replies
-
This community is managed by GitHub employees, but it is not a support forum and there is no SLA or guarantee each post will get a response from a community manager or product leader. If your discussion provided product feedback or a feature request we encourage you to review the "Making Suggestions" guidelines in the repo readme including: "Once you kick off a discussion, the GitHub product team will evaluate the feedback but will not be able to respond to every submission." Thank you for contributing and continuing to support other users in the GitHub Community Discussions. |
Beta Was this translation helpful? Give feedback.
-
I activated my google-fu and found a couple of bits of information on this:
I checked: for my task there are a total of 1113 attachments to take care of. I can see the following options:
Option 1. renders the whole procedure mostly useless, option 2. is only for masochists. Which likely means option 3. |
Beta Was this translation helpful? Give feedback.
-
🕒 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 all.
I was tasked with migrating an old phpBB forum to Discussions on GitHub to preserve the content for future lookup. There are about 2000 topics and 7000 posts to consider. I've already obtained the mysql dump from the backend database from remote server and imported it to sqlite for easy local queries.
The GitHub GraphQL documentation describes how to create topics and how to add comments to discussions. However, there are also a few hundred attachments, mostly stuff like screenshots etc, that would need to be preserved as well. These attachments currently also reside on local storage. From what I understand from only reading the docs, there seems to be no immediate way to attach/include local files in comments?
Any pointers on how to achieve this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions