The script could be split into at least two modules, one containing the methods that can be re-used, leaving in the issues_to_pages.py script only the body of the main so that the issue-to-page.yml workflow can work. This would also allow the methods to get tested (e.g. by downloading the issues available at a given data, and saving them to have some testing data) so that we ensure that this is stable across time, avoid breaking things, and hopefully avoiding to do re-do things year after year.
issues_to_pages.py
script only the body of the main so that theissue-to-page.yml
workflow can work. This would also allow the methods to get tested (e.g. by downloading the issues available at a given data, and saving them to have some testing data) so that we ensure that this is stable across time, avoid breaking things, and hopefully avoiding to do re-do things year after year.Originally posted by @jhlegarreta in https://github.com/brainhackorg/global2021/issues/40#issuecomment-932795741