Prerequisite: Connect GitHub (workspace)
Before linking repositories, an owner or admin must connect your GitHub organization in Settings → GitHub. After that, you can link repos to individual Queries.Prepare your repository
The repository can be empty, and several Notebooks and Queries can share it. Nekt stores each resource in its own folder, named after the resource’s pipeline slug. You don’t choose the folder.
Other files in the repository, such as a
README.md or CI configuration, are ignored.
Link the repository to a Query
In the Queries list, use the Versioning column:- Click Connect repository for the Query you want to version.
- In the dialog, select the GitHub repository and branch, and confirm. Nekt commits the Query’s current SQL to the repository.
How the sync works
- Linking uploads the code from Nekt. When you link a resource to a repository, Nekt commits its current code to the resource’s folder on the chosen branch, replacing any
notebook.py,query.sql, orrequirements.txtalready in that folder. - Pushes to the branch update Nekt. Nekt reads the files changed in each push to the linked branch and updates only the resources whose files changed. Pushes to other branches are ignored.
- Saving in Nekt commits to the branch. When you save code or dependencies in Nekt, the change is committed to the linked branch. If GitHub rejects the commit, for example because of a branch protection rule, the save fails.
- Pushed Notebooks are validated before they apply. Nekt checks that the tables, volumes, and secrets a Notebook uses exist, and that the user who linked it can read its input tables and edit its output tables. If a check fails, the code in Nekt is not changed and the error is shown on the Notebook. Fix the code and push again.
API & MCP
Platform API
Not available in the Platform API yet.
MCP tools
connect_transformations_to_github and list_github_repositories.