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>stringrequiredThe repository as one argument, the way it appears in its address, such as acme/api.
Flags
--branch <branch>stringThe branch to read.
--path <file>stringThe spec's path in the repository.
Examples
Connect a spec in a subfolder
bash
octri github connect acme/api --branch main --path specs/openapi.yamlRelated
octri github sync: Pull the spec from the connected repository now.octri github auto-sync: Ingest the spec automatically on every push that changes it.octri github disconnect: Disconnect the repository and remove Octri's webhook from it.