Skip to main content
POST
Connect a GitHub repo to a project

Authorizations

Authorization
string
header
required

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

Body

application/json
repo_id
integer
required

GitHub's id

owner
string

The org a new project goes to; needed unless project says

Required string length: 1 - 100
slug
string
Required string length: 1 - 64
name
string
Required string length: 1 - 100
visibility
enum<string>

Who can reach the project's repo. open: anyone can find it, read it and fork it. closed_source: anyone can find and play what it releases; only its org reads the source. private: only its org can find it, and anyone else gets a 404. It isn't locked: the game host serves a published browser game to anyone who has its address.

Available options:
open,
closed_source,
private
project
string

An existing project with no repo, as owner/slug

Pattern: ^[^/\s]+\/[^/\s]+$

Response

Connected

project
object
required
github
object
required