Skip to main content
POST
Fetch a public GitHub release's files, to make a release from them

Authorizations

Authorization
string
header
required

An API key (pch_...) or the token from pch login.

Body

application/json
url
string
required
Required string length: 1 - 500
Example:

"https://github.com/mira/lantern-run/releases/tag/v1.2.0"

unpack
boolean

Store the files inside the release's one zip instead of the zip, e.g. for a browser game.

Response

The release's files, stored

repository
string
required
Example:

"https://github.com/mira/lantern-run"

release
object | null
required

Null when the repository has no release: see branch

branch
string | null
required

When the repository has never made a release, the default branch whose source Patch took

listing
object
required
source_zip
boolean
required

The files are GitHub's zip of the source, because the release has none of its own or there's no release. Its files are all in one folder (see zips[].root).

files
object[]
required
zips
object[]
required

What's inside each zip among the files (not sent when unpacked)