add license
first
Scripts to export data from GitHub and port it elsewhere. Requires Deno 1.38+.
Scripts are very hardcoded but should be simple to understand and edit for your needs.
release-export.ts
takes a JSON array of releases and converts it into markdown pages to put in static sites like Hugo (but not limited to that).
To obtain the JSON just call the GitHub public API:
curl -o releases.json "https://api.github.com/repos/OWNER/PROJECT/releases?per_page=100"
if you have more than 100 releases you'll need to use the pagination and stitch it into a single JSON.
Once you're done just run:
deno run -A .\release-export.ts
and it will generate all the markdown pages in a new folder out
.