GET /v1/github/connect
Sends an owner or admin of the signed-in organization to GitHub to install the B3OS GitHub App on chosen repositories. GitHub then sends the browser to the callback, which checks that the GitHub account that came back administers the account the App was installed on (is that user, or an owner of that GitHub organization) before the organization gets the installation. redirect_to is a dashboard path to land on afterwards.

Query Parameters

redirect_to string optional query
A path on beta.b3os.org (never another host).
Default /app/applicationsPattern ^/[^/\\]

Responses

302 Redirect to GitHub's install page, or to sign-in when there is no session.

No response body

400 The request failed validation (invalid_request, invalid_url).
429 A rate, concurrency or quota limit applies (rate_limited, concurrency_limited, quota_exceeded).
500 Something failed inside B3OS (internal). Retry with backoff.
503 The node or the product is not available right now (node_unavailable, product_unavailable, capacity_unavailable).
curl -X GET 'https://beta.b3os.org/v1/github/connect' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta.b3os.org/v1/github/connect', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta.b3os.org/v1/github/connect', headers=headers)print(response.json())
400 Response
{  "type": "https://docs.beta.b3os.org/errors#invalid_request",  "title": "Invalid request",  "status": 400,  "code": "invalid_request",  "detail": "1 field failed validation",  "instance": "req_01m5t4yg394wegr3j4y01qb363",  "errors": [    {      "pointer": "/url",      "detail": "must be an absolute http or https URL"    }  ]}
Ask a question... ⌘I