Discussions GraphQL API: how to add or include attachments? #121412
Replies: 2 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.
-
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