You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
@miketaylr So today I was working on the code and there were two many issues which were popping up with our discussions of the last few days. So before refactoring wildly and destroying everything that mike did. I want to know if it makes sense. ;)
Given a list of files with a JSON format containing each of them an issue,
A user may pipe the list of files to the issue importer to post them on Github.
(When I say webcompat below I may meant github in the backend)
Grab the list of labels from webcompat, save them locally in a cache.
For each file in the filelist:
read the file content as JSON
transform the JSON content to webcompat JSON with the relevant adapter [origin]
Select the appropriate data
Add the appropriate labels
Generate the JSON
check the validity
If invalid: log the issue numbers in logfile and discard the file
else: add the file to a batch folder.
If github true:
Ask confirmation that you are about to upload 1 million issues.
For each of the file in the batch folder
Upload the file to github
Delete from the batch. (If there is an issue in the middle, you do not have to redo everything)
Make a summary of what happened
else: (dry-run):
Give a summary of what it would have done without doing it.