~ashkeel/escape-github

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ashkeel/escape-github
read/write
git@git.sr.ht:~ashkeel/escape-github

You can also use your local clone with git send-email.

#GitHub migration scripts

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.

#Export releases to Hugo

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.

Do not follow this link