Octri

github connect

Points the project at a spec file in a repository and adds a webhook to it. Connecting doesn't import anything yet: run github sync to pull the spec now, and turn on auto-sync to pull it on every push. Private repositories need the Octri GitHub App.

bash
octri github connect <owner/repo> [--branch <branch>] [--path <file>]

Arguments

<owner/repo>stringrequired

The repository as one argument, the way it appears in its address, such as acme/api.

Flags

--branch <branch>stringdefault: main

The branch to read.

--path <file>stringdefault: openapi.yaml

The spec's path in the repository.

Examples

Connect a spec in a subfolder

bash
octri github connect acme/api --branch main --path specs/openapi.yaml