Overview
Tool Name
Purpose
The github_connector_tools enable direct integration between Genesis Data Agents and GitHub repositories. Manage repositories, files, branches, pull requests, and workflows programmatically—all within your data agent conversations. Perfect for automated documentation, code generation, data pipeline versioning, and collaborative data projects. When a governed GitHub write is refused by GitHub itself, Genesis reports the action asnot_applied and preserves GitHub’s error message for the reviewer.
If a write returns reconciliation_required, its outcome is uncertain and
nothing will rerun it; check GitHub before anyone runs it again. For
GitHub-specific actions, read-back uses the resolved GitHub credential, and
Genesis confirms a child-resource change only when its repository is visible to
that credential. A GitHub 404 is inconclusive because the repository may be
private or missing. Core git_action writes use the Git transport and cannot
currently prove that read-back uses the same credential, so an uncertain result
may remain reconciliation_required rather than being automatically confirmed.
See placeholder rules.
Functions Available
git_action:Core Git operations including repository management, branching, committing, and history tracking.file:File operations for reading, writing, searching, and managing repository content.git_action(GitHub-specific actions):GitHub platform features including pull requests, remote repository management, and credential storage.
Key Features
Repository Management
Clone, create, list, and delete repositories with full version control integration.
Branch Operations
Create, switch, merge branches and manage parallel development workflows.
Pull Request Automation
Create, review, merge, and close pull requests programmatically for collaborative workflows.
File Management
Read, write, search, copy, move, and delete files with pattern matching and bulk operations.
Commit History
Access commit logs, fetch history, and track changes across repository timelines.
Secure Authentication
Store GitHub credentials securely with support for Personal Access Tokens (PAT).
Input Parameters for Each Function
git_action
Parameters
file
Parameters
For
github_connector CREATE_FILE, allow_secrets is an optional array of
finding IDs (default: null). Use IDs from a SECRETS_DETECTED refusal; only
the named findings are overridden. A scan failure returns
SECRET_SCAN_FAILED and nothing is written. See Git Action Tools
for how finding-specific overrides work. After the secret scan passes,
CREATE_FILE follows the effective Action Review policy; see
Action Review for when a
write runs directly instead of creating a proposal.Transferring existing files. When the source already lives in a repository,
use
file(action="copy") or file(action="move") for byte-exact server-side
transfer — never read a file and write the same bytes back. For inline or
generated binary content that is not already on disk, write base64 with
is_base64=true. Without is_base64=true, the base64 string is written as
literal ASCII text and the file is corrupt. For write_multiple, set
is_base64 inside each files[] item rather than at the top level. See
Git Action Tools for examples.With
git_action(action="list_repos", details=True), Genesis always returns
has_remote as true or false so agents can filter cleanly. When a remote
exists, remote_url is credentials-redacted and clone_source is set when
Genesis can infer github, gitlab, bitbucket, or azure_devops. Use
include_paths=True to add path to each detail row.file(action="read") supports partial and targeted reads with start_line,
end_line, max_lines, start_byte, max_bytes, end_byte,
tail_bytes, max_chars, search_pattern, context_lines_before,
context_lines_after, max_matches, return_line_numbers, encoding,
force_text, and return_base64. file(action="read_multiple") forwards
the same controls per file entry. When the target is a managed GitHub repo
base checkout, Genesis reads remote truth instead of the shared local clone
when the checkout has a git remote. Pass branch_name to read that ref on
origin; omit it to read the managed default branch. When the checkout has no
git remote, Genesis reads the local tree and includes freshness_notice (see
Git Action Tools). On the
origin-backed remote-read path, start_line, end_line,
max_lines, and return_base64 are supported, but search_pattern,
context_lines_before, context_lines_after, max_matches, start_byte,
end_byte, max_bytes, tail_bytes, max_chars, return_line_numbers,
force_text, and encoding return an explicit error. Binary content on the
remote-read path must use return_base64=true.Extremely large single-file reads follow the same guardrail as
git_action: when git_action(action="read_file"), file(action="read"), or file(action="inspect_structured_data") exceeds the file-read inline budget (default 65,536 bytes / 64 KB, configurable with GENESIS_TOOL_OUTPUT_FILE_READ_BUDGET), Genesis returns tool_output_capped, preview, truncation_info, full_output_ref, and agent_guidance. When full_output_ref is not null, the full text is saved under truncated_tool_outputs/<thread_id>/... in the apps BotGit repo and can be paged back with file(action="read", file_path=full_output_ref, repo_id="apps", start_byte=0, max_bytes=N), continuing from each response’s continuation.next_start_byte. The byte range is the shape that returns the saved copy exactly as written; the whole-file and line-window paths read in text mode and rewrite line endings.Use Cases
- Automated Documentation Generate and commit data dictionaries, analysis reports, or pipeline documentation directly to GitHub repositories.
- Code Generation & Versioning Create dbt models, SQL scripts, or Python notebooks and version them in GitHub for team collaboration.
- Data Pipeline Deployment Clone configuration repositories, update parameters, commit changes, and create pull requests for review.
- Collaborative Data Projects Share analysis notebooks, datasets, and findings with team members through structured GitHub workflows.
- Backup & Disaster Recovery Automatically commit critical configurations, metadata, and artifacts to GitHub for version-controlled backups.
Workflow/How It Works
-
Step 1: Authenticate with GitHub
Store GitHub credentials securely using Personal Access Token:
-
Step 2: Create or Clone Repository
Start with a new repository or clone an existing one:
Add
branch_name="release/2026.05" to clone and check out a non-default
branch in one call. Unless you override them, shallow and
single_branch both default to true; set depth=0 for full history.-
Step 3: Manage Files
Create, read, and organize files within the repository:
-
Step 4: Commit Changes
Track changes with descriptive commit messages:
Genesis credits the person who asked according to the connection’s
git_requester_credit setting; don’t add them to co_authors. The optional
co_authors parameter adds other collaborators without changing the primary
commit author. See Crediting the person who asked.-
Step 5: Create Pull Request
Collaborate with team through pull requests:
-
Step 6: Push to GitHub
Sync local changes to remote repository:
Integration Relevance
- project_manager_tools to track data projects and link GitHub repositories to missions.
- data_connector_tools to export analysis results and commit them to version control.
- dbt_action to manage dbt projects in GitHub with full version control.
- file_manager_tools to organize artifacts before committing to repositories.
- slack_tools to notify teams when pull requests are created or commits are pushed.
Configuration Details
- Personal Access Token: Generate from GitHub Settings → Developer settings → Personal access tokens. Required scopes:
repo,workflow. - Enterprise URL (
enterprise_url): Optional on saved GitHub connections (PAT, User OAuth, and GitHub App). Leave blank for public github.com. Set to your GitHub Enterprise Server hostname (for examplehttps://github.mycompany.com) when repositories and API calls target a self-hosted instance. A blank Enterprise URL uses the server’s default GitHub address, which is public GitHub unless the server was started with its own. On a server whose default is public GitHub, agithub.comaddress (such as an organisation page) is refused when the connection is saved, because it would be ignored and cannot select an organisation; on a server whose default is a GitHub Enterprise Server, blank means that server, and agithub.comaddress selects public GitHub and is accepted. Connections already saved with agithub.comaddress keep working againstapi.github.com, and Genesis appends/api/v3only for Enterprise Server hosts. - CA Certificate (PEM) (
ca_certificate): Optional, for a GitHub Enterprise Server whose certificate is signed by your own company CA. Paste the CA certificate (several may follow one another). Genesis trusts it only for the Enterprise URL’s host, for git (http.<server>.sslCAInfoon each git command) and for GitHub API and token requests; other hosts keep the normal trust store, and certificates are always verified. One exception: on a deployment that setsGIT_SSL_CAINFO(for a TLS-inspecting proxy), which git applies to every host, a git command for the Enterprise remote gets that bundle plus the CA, so for that one command the CA is also trusted for any other host it reaches (a redirect or a submodule). It requires an Enterprise URL, refuses a private key, and only a person can set or change it, not an agent. - GitHub Enterprise Server sign-in: A GitHub App on an Enterprise Server gets its installation tokens from that server’s
/api/v3. User OAuth on an Enterprise Server signs people in athttps://<server>/login/oauth/authorizeand exchanges the code at/login/oauth/access_token, and needs the connection’s own OAuth client ID and secret registered on that server; without them it is refused instead of falling back to github.com. To reach a server inside your network, route it through an Outpost (see Connect a system through an Outpost). - Git Commit Author (
git_author_mode): Optional select field on the saved GitHub connection. Default:genesis_bot. Supported values:genesis_bot,authenticated_git_user,custom. - Git Author Name (
git_author_name) and Git Author Email (git_author_email): Optional string fields on the saved GitHub connection. Genesis shows them only whengit_author_mode="custom", and both are required together in that mode. For GitHub App connections, usecustomwhen you need a fixed verified author identity. - Credit the person who asked for the change (
git_requester_credit): Optional select field on the saved GitHub connection. Default:co_author. Supported values:co_author(addsCo-authored-by: Name <email>, using the person’s GitHub noreply address when they set their GitHub username in their profile),requested_by(addsRequested-by: Name),off. An email in a commit is permanent and visible to everyone who can read the repository’s history; people can choose Don’t put my email in commits in their profile. If the agent has its own GitHub account, set Git Commit Author to Account that owns the token (authenticated_git_user) so its commits link to that account. - Repository Naming: Use lowercase with hyphens (e.g.,
data-pipeline-prod) for consistency. - Branch Strategy: Use feature branches (
feature/,bugfix/) for changes; protectmainbranch. - Commit Messages: Follow conventional commits format:
feat:,fix:,docs:,refactor:. - File Paths: Always use forward slashes (/) and relative paths without leading slash.
- Large Files: GitHub has 100MB file size limit; use Git LFS for larger artifacts or store in data platforms.
Limitations or Notes
- File Size Limits: GitHub limits individual files to 100MB; repositories to 1GB recommended size.
- API Rate Limits: GitHub API has rate limits (5,000 requests/hour for authenticated users); batch operations when possible.
- Private and Internal Repository Access: Requires appropriate permissions and PAT scopes for non-public repos.
- Binary Files: Git is optimized for text files; large binary files can slow repository performance.
- Merge Conflicts: Automatic merging may fail with conflicts; manual resolution required.
- Branch Protection: Protected branches may prevent direct pushes; use pull requests instead.
- Network Dependency: All operations require internet connectivity to GitHub servers.
Supported Actions
✅ clone_repo - Clone repository from GitHub URL✅ create_repo - Create new local repository
✅ list_repos - Show all available repositories
✅ commit - Commit staged changes
✅ push - Push commits to remote
✅ pull - Pull changes from remote
✅ create_branch - Create new branch
✅ switch_branch - Switch to different branch
✅ get_status - Show repository status
✅ get_history - View commit history
✅ create_pull_request - Create PR on GitHub
✅ merge_pull_request - Merge PR
✅ store_github_credentials - Save authentication
✅ list_remote_repos - List repos on GitHub
✅ check_remote_repo_exists - Check whether a GitHub repository already exists
✅ create_remote_repo - Create a GitHub repository in a personal account or organization
✅ READ_FILE - Read a single file from a named GitHub branch, or the repo default branch when
branch is omitted, through the GitHub Contents API✅ file operations - Full CRUD on repository files, including batch reads with
file(action="read_multiple")
For governed issue creation (CREATE_ISSUE), body, labels, and
assignees are optional. When omitted, Genesis leaves them out of the GitHub
request rather than sending null, so an issue can be created without labels.
If action_review.status is not_applied, the issue was not submitted; use the
error to correct the failure before retrying. When GitHub explicitly refuses
the issue-creation POST, error_code is github_http_<status>. Do not retry an
uncertain reconciliation_required result (described above).
When git_worktrees.enabled is true, CREATE_FILE and CREATE_BRANCH are refused
with EDIT_ON_A_BRANCH. Use git_action(action="prepare_edit") instead: it asks
which branch to use and makes the change in the conversation’s branch. This applies
even when CREATE_FILE names an existing non-default branch; CREATE_BRANCH does
not create a branch outside the branch card. See Git Action Tools
for the edit flow.
For GitHub remote repository responses, use
visibility instead of
private when describing access to users. GitHub sets private=true for
both internal and private repositories, while visibility preserves the
full public / internal / private distinction.For
github_connector actions, connection is optional. Pass an accessible
GitHub connection by full name (such as github.work) or short name (such as
work), including in Flow Python steps. When omitted, Genesis uses the
caller’s usable default: My default, then an unambiguous Role default. A
legacy is_default flag does not select a connection. See
Default connection layers.
Direct READ_FILE requires repo_name, owner, and file_path. branch
is optional; when omitted, Genesis reads the repo default branch and falls
back to main if the default branch is unavailable.
Successful responses include content, text, text_is_lossy, sha,
size, encoding, ref, path, and source.When a scoped GitHub default resolves but its saved credentials are missing
or invalid (for example an empty PAT or failed GitHub App token mint), Genesis
returns an error instead of silently falling back to the
GITHUB_TOKEN
environment variable. Genesis uses GITHUB_TOKEN only when no scoped
default applies for the caller.Pull Request Comments and Reviews
Usegithub_connector in github_connector_tools from a Genesis Data Agent
conversation to participate in GitHub PR discussion and review:
A configured connection is required for discussion reads and comment/review
writes; these actions do not fall back to
GITHUB_TOKEN. See
Default connection layers.
Comment and review writes follow the effective Action Review policy; they may
run directly when no policy rule governs the action. See
Action Review for the routing
conditions.
On a connection where each person signs in with their own GitHub account (User
OAuth, or each person’s own credential), an approved github_connector write
(an issue, comment, review, pull request, branch, file or repository change) is
sent with the requester’s own sign-in, never the approver’s, so GitHub records
the person who asked as its author. The approver still needs access to the
connection. If the requester’s sign-in is gone when the write is applied, it is
refused and nothing is sent. On a saved shared-token connection, the write is
sent with that token. The deployment’s environment-only GITHUB_TOKEN follows
the separate rule below when Action Review could govern the write.
On a connection where storing your own token is optional, someone who has none
signs in with the connection’s shared token. For every write, typed (an issue,
comment, review, pull request, branch, file or repository change) or an
API_REQUEST raw write, including one the web tool hands to API_REQUEST, the
review card says which of the two the requester’s write is made with, and it is
sent only with that kind. If the requester removes their own token after
approval, the write is refused and nothing is sent; if a requester who had none
stores one, it is refused too. Approve it again to send it with the credential
the requester now uses.
For ADD_PR_COMMENT, body is required comment text. For review actions,
review_comments is an optional array of up to 50 single-line findings. Each
item must contain exactly path (repository-relative string), line (positive
integer), side (LEFT for the old diff or RIGHT for the new diff), and
body (non-empty string). GitHub validates that the line belongs to the PR
diff. ADD_PR_REVIEW and REQUEST_PR_CHANGES require either a non-empty review
body or at least one review_comments item; APPROVE_PR can have neither.
commit_sha is optional and identifies the full 40-character PR head SHA to
review. If omitted, Action Review preparation reads and freezes the current PR
head. If supplied, it must match that head; submission is refused if the PR head
has changed, so read the PR again before preparing a new review.
page is an optional positive integer. A numbered read
fetches one GitHub page and returns page, next_page, and complete; follow
next_page until it is null (the final request can return an empty page).
Without page, GET_PR_COMMENTS and GET_PR_REVIEWS read every page.
GET_PR_REVIEW_COMMENTS defaults to page 1, so pass subsequent next_page
values to read the complete inline discussion. Each page requires a GitHub API
request, in addition to repository and PR reads. Review-comment results include
file path and line anchors, review_id, in_reply_to_id, and thread_id for
grouping replies; the REST feed does not include thread resolution state.
GET_PR_COMMENTS returns each comment’s id, body, user, url, and
created_at. GET_PR_REVIEWS returns id, user, state, body, url,
commit_sha, and submitted_at. Inline review comments also return id,
body, user, url, path, line, side, original_line, and commit_sha.
Other GitHub Writes (API_REQUEST)
API_REQUEST makes a GitHub write that no other github_connector action
makes, such as an issue comment outside a pull request, labels, releases,
reactions, or editing or deleting a comment. It sends one request through the
selected connection:
A path may use percent-escapes such as
help%20wanted; it is sent exactly as
written. An encoded /, . or \, or a malformed escape, is refused.
The write follows the effective Action Review policy, like every other
github_connector write. With no rule covering it, it runs at once. A rule can
allow it, hold it for a person, or deny it. The review card shows the method,
path, query string, API version and body, and an approved request is sent
exactly as shown, once: it is never re-sent, not even after a rate limit. It
counts as a destructive, irreversible write, and no standing grant covers it.
A raw request that makes the same change as another github_connector action
is governed as that action too, and carries the same resource names: the
repository, OWNER/REPO#NUMBER for an issue or pull request, and
OWNER/REPO#BRANCH for a branch. For example, PATCH /repos/OWNER/REPO/issues/7
with a new title carries the action:update_issue tag, a comment on a pull
request’s number carries action:add_pr_comment, and a GraphQL closeIssue
carries action:close_issue. A rule on that action therefore also holds or
denies the raw request. The request also carries the repo:OWNER/REPO and
branch: tags of what it reaches, so a rule on a repository covers it. To
establish these, Genesis may read from GitHub before proposing the request:
whether an issue number is a pull request, or which repository, issue, pull
request or branch the node IDs in a GraphQL mutation belong to.
Each write the request makes is judged on its own facts: every typed action it
equals, on every issue, pull request, branch or repository it touches, is
judged separately, as that typed action alone, and the strictest decision
wins. So a rule allowing API_REQUEST, or allowing one GraphQL field or one
branch, cannot outweigh a rule denying another. A field skipped by @skip or
@include is not judged, because it does not run. A sub-resource keeps its
parent: a label on issue 7 is a write to OWNER/REPO#7. A comment named only by
its id (/issues/comments/17, /pulls/comments/18, and their reactions) is read
first to find its issue or pull request; if that cannot be read, the request is
refused. A file write that names no branch is scoped to the repository’s default
branch, read from GitHub. Replacing an issue’s labels or assignees, over REST or
with the GraphQL label and assignee mutations on an issue or pull request,
counts as update_issue. Each entry of a GraphQL updateRefs is its own write:
one that creates or deletes a branch counts as create_branch or
delete_branch on that branch only. A single object given for a GraphQL list
input, such as one refUpdates entry or one file in additions, is read as a
one-item list, as GitHub reads it. The request’s own facts pair each repository
only with the branches written in it, so a request making docs in one
repository and tests in another names neither the other way round. Granting
or removing a team’s permission on a repository
(/orgs/ORG/teams/TEAM/repos/OWNER/REPO, or the older
/teams/ID/repos/OWNER/REPO) is a write to that repository. GitHub reads an
owner or repository name in any letter case, so the repository is read from
GitHub, as the requester, for the spelling GitHub gives it. Its ids and repo:
tags carry both that spelling and the one the request used, so a rule written
either way matches; branch names keep their case. If GitHub cannot name the
repository, the request is refused. An approval is for the repository reviewed:
if a different repository has taken its name by the time the request is
approved or sent, the approval is invalidated and nothing is sent. The path is classified as GitHub routes it,
so /graph%71l is read as /graphql; the review card shows the path as sent.
Writes of file content get the same checks as CREATE_FILE: content in
contents, git blobs and trees, and GraphQL createCommitOnBranch is scanned
for secrets (allow_secrets overrides the findings it names); a detected secret
is refused, under any rule, exactly as CREATE_FILE refuses it. Content the
scanner cannot read (binary, invalid base64, or another encoding) is not refused:
it goes to the rule like any other write, and the review card, in Genesis and in
Slack, says couldn't scan: with its kind (binary, invalid base64 or
unsupported encoding, never the encoding the request named), its size in
bytes and its sha256. An
approved request still sends exactly those bytes, once. Only content the request itself
carries is scanned: a tree or commit that names blobs or trees by SHA does not
have those objects read. While editing happens on branches, a raw file write, a
git blob, tree or commit, or a branch change (including GraphQL updateRef on a
branch) is refused with the same EDIT_ON_A_BRANCH redirect to git_action
prepare_edit, both before it is proposed and again when an approved request is
sent. An updateRef that moves a tag is not a branch change: GitHub is asked,
with the requester’s connection, which the ref is, and a tag move goes to the
rule.
A GraphQL request is refused, and nothing is sent, when Genesis cannot
establish what it writes. That happens when the operation that runs is a query,
when several operations are given without operationName, when a required
variable (Type!) the mutation uses has neither a value in variables nor a
default in the document,
when a string holds half of a UTF-16 escape pair, or when a node ID cannot be
resolved. A variable given in variables, even as null, has that value; one
left out takes the document’s default, and a nullable one with no default leaves
out the input it fills, as GraphQL does.
On an install with no saved GitHub connection, a nonblank environment
GITHUB_TOKEN can make a github_connector write as the deployment’s own
credential. GITHUB_API_BASE_URL selects the API route for that token (public
GitHub when unset). With no Action Review rule that could govern the write, it
runs directly as before. When a rule could govern it, the write goes through
Action Review with the deployment credential; a matching rule allows, holds,
or denies it, and an unmatched write proceeds without a review card. The requester
must still be allowed to use the tool. A saved GitHub connection that exists but
cannot be read also disables the environment credential path; if any saved GitHub
connection exists, select an appropriate saved connection instead. See Default connection layers
and Action Review.
The deployment token is pinned to the exact API route selected by
GITHUB_API_BASE_URL: requests outside that route and redirects are refused.
Plain HTTP is allowed only for loopback hosts, where Genesis bypasses environment
proxies; use HTTPS for a remote GitHub Enterprise API. A credential URL with
ambiguous authority or a dot-segment path is refused before the token is sent.
An approved write using the deployment token is also bound to the GitHub account
that token signs in as when the write is proposed. Genesis checks the account
again when the approval is prepared and immediately before sending; if a rotated
token belongs to another account, the write is refused and nothing is sent.
On a connection where each person signs in with their own GitHub account, an
approved request is sent with the requester’s own sign-in, never the
approver’s. On a shared token, the requester’s access to the connection is
checked again when an approved request is sent. Either way, a requester who no
longer has access means the request is refused and nothing is sent.
GitHub’s answer decides the reported outcome, and its HTTP status is kept in the
receipt. A REST 200, 201 or 204 is reported as applied, and GitHub’s
refusal as not applied. Any other success status, such as 202 for work
GitHub has only accepted, is uncertain. A GraphQL request GitHub did not
run (errors and no data) is not applied. A GraphQL answer with errors, or with
a field answered with null, is uncertain: check GitHub before anyone runs it
again.
When an Action Review rule could cover GitHub writes, the web tool hands a raw
write to the GitHub API to API_REQUEST, sent through the stored GitHub
Connection serving the URL’s host as the person who asked, or with the deployment’s
GITHUB_TOKEN when no saved GitHub connection exists. It never uses auth given
to the web tool. The Connection or deployment API route must serve the URL’s exact origin,
port included. Its headers are kept, and its body goes with exactly the bytes
and Content-Type the web tool would send with no rule. A release asset upload
to the uploads host of that Connection’s GitHub is routed the same way. A GitHub
Enterprise Server under a context path (an Enterprise URL such as
https://ghe.example.com/context) is covered too: a write to
/context/api/v3, /context/api/uploads or /context/api/graphql goes to the
Connection for that server, and so does one to the server this install’s own
GITHUB_TOKEN is for (GITHUB_API_BASE_URL). A write to that host’s root
/api/v3 is refused when no Connection serves it, and so is a path with a
;parameter in a segment. When it cannot route the write, it refuses with
RAW_WRITE_REQUIRES_GOVERNED_TOOL, naming API_REQUEST and the reason, and
sends nothing. That happens when:
- no stored Connection serves the host and port, or several do and none is the
requester’s default (unless the install’s own
GITHUB_TOKENserves the API); - the request carries its own credential that the Connection does not hold:
auth, a user name or password in the URL, a credential header (such asAuthorization,Cookie,X-API-KeyorPrivate-Token), or a GitHub authentication query parameter (access_token,token,client_secret). An ordinary header such asIdempotency-Key, andsecret_text the web tool sends as written, are not credentials; - a header overrides the method or frames the body;
- the body resolves secrets;
- it sends something other than an asset upload to the uploads host, or an asset upload to the API host.
POST /repos/OWNER/REPO/releases/ID/assets
with the asset’s name as api_query ([["name", "app.zip"]]), its bytes as
api_raw_body_base64 and its type as the Content-Type in api_headers.
API_REQUEST sends it to the uploads host of the connection’s own GitHub:
uploads.github.com for public GitHub, or /api/uploads on a GitHub
Enterprise Server. The request never names that host. The review card names it
as binary upload: <name>, <size> bytes, sha256 <hash>. The upload carries the
repository and the release, named by its tag (OWNER/REPO#release:TAG, tag
release:TAG), so a rule on either decides it, even beside a more specific
rule allowing the upload endpoint. A release GitHub can’t read is refused.
Editing or deleting a release (PATCH or DELETE /repos/OWNER/REPO/releases/ID) or one of its assets (PATCH or DELETE /repos/OWNER/REPO/releases/assets/ID) carries the same release scope when a
rule could name a release. Its tag is read from GitHub under the requester’s
own sign-in, again at approval and when the change is applied, so a release
retagged in between voids the approval. An edit that sets tag_name also
carries the tag it gives. An id is read by its value (0011 is release 11). A
release or asset whose tag GitHub can’t give, or an id that is not a number, is
then refused. With no rule naming a release, nothing more is read.
Creating a release (POST /repos/OWNER/REPO/releases) carries the release
named by the tag_name in its body, with no read; one naming no tag may be any
release, so a rule on any release of the repository decides it. A reaction on a
release (POST /repos/OWNER/REPO/releases/ID/reactions, DELETE /repos/OWNER/REPO/releases/ID/reactions/REACTION, or a GraphQL mutation such as
addReaction naming a Release node) carries that release, its tag read under
the requester’s own sign-in. GitHub’s GraphQL API has no mutation that creates,
edits or deletes a release; a GraphQL field about releases is refused while a
rule could name a release, because the release it reaches can’t be established.
When a rule could govern a github_connector write, an issue, pull request or
comment number spelled with leading zeros (/issues/007, /pulls/03) is read
by its value, as GitHub reads it, so a rule on that issue or pull request (or on
the typed action the write equals) decides it; the request is still sent with
the path as written. Under such a rule, API_REQUEST also refuses an api_query
carrying access_token, token or client_secret (by name, in any case): GitHub
would run the request with it beside the Connection’s own credential. With no
rule, both are sent as before.
Not Supported
❌ Git submodules or subtrees❌ Git LFS (Large File Storage) direct management
❌ GitHub Issues or Projects management
❌ Repository webhooks configuration
❌ GitHub Pages deployment
❌ Repository transfer or ownership changes
❌ Advanced merge strategies (squash, rebase from tool)
To execute GitHub Actions workflows, use CI Pipeline Tools.
Output
- clone_repo: Confirmation with repository path and clone details.
- commit: Commit hash, files changed, and commit message confirmation.
- push: Push status, branch name, and remote URL.
- get_history: List of commits with hash, author, date, and message.
- get_status: Current branch, staged/unstaged files, and sync status.
- create_pull_request: PR number, URL, and creation confirmation.
-
get_pull_request_info: PR metadata plus CI status for the head commit. Returns
number,title,body,state,merged,draft,body_sha256,user,head_branch,base_branch,head_sha(the real PR head commit — nevermerge_commit_sha),url,created_at,updated_at,merged_at, andmerge_commit_shaunder its own key. Usebody_sha256withupdate_pull_requestto guard a description replacement against intervening edits; see Git Action Tools. CI status forhead_shais reported as:check_runs— a list of{name, status, conclusion, details_url}.check_runs_totalandcheck_runs_truncated— GitHub’s reported Check-run count and whether the boundedcheck_runslist is incomplete or disagrees with that count.combined_status—{state, total_count, truncated, statuses:[{context, state, target_url}]}.stateis GitHub’s commit-status rollup, which covers commit statuses only.total_countis how many status contexts GitHub reports, andtruncatedistruewhen the observed count disagrees with that total or the bounded walk cannot prove completeness — so a partial list is never mistaken for a complete one. (GitHub defaults to 30 statuses per page and permits up to 100; Genesis requests the maximum and continues the paginated feed.)ci_summary— the derived rollup across both sources:{state, check_runs_total, check_runs_failed, check_runs_pending, check_runs_truncated, statuses_total, statuses_failed, statuses_pending, statuses_truncated, truncated}.stateisfailurewhen any check run or current status did not pass,pendingwhen nothing failed but a signal is unfinished, incomplete, or semantically unknown,successwhen every known signal finished and passed and both sources are complete, andno_checkswhen neither source reported anything. Preferci_summary.stateovercombined_status.statefor “did CI pass?”: GitHub does not fold check runs into the commit-status rollup, socombined_status.statecan readsuccesswhile GitHub Actions is still running.
null, the successful peer remains available, andci_summaryisnullbecause the aggregate is incomplete.check_runs_errororcommit_statuses_errorcarries the source-specific reason, and the rest of the PR metadata is still returned. The matchingcheck_runs_error_detailorcommit_statuses_error_detailcontains GitHub’s rawstatus,message,documentation_url, andaccepted_github_permissionswhen available. On a non-rate-limited 403 the message names the grant to add, and which grant depends on the connection: a GitHub App connection is told to addChecks: readorCommit statuses: readto the installation, while a PAT or User OAuth connection is told which token scope it needs. Rate-limited and other failures report a generic read-failure message. See Connections — Permissions for reading CI results. -
list_remote_repos: Accessible personal and organization repositories plus
summary. Each repo includes bothprivateandvisibility, andsummaryincludestotal_accessible_repos,personal_repos_count,organizations_count, andvisibility_breakdown. -
check_remote_repo_exists: Successful responses include repository metadata with both
privateandvisibility. -
create_remote_repo: Successful responses include created repository metadata with
private,visibility,default_branch,url,ssh_url, andweb_url. -
READ_FILE: Direct branch reads return
content,text,text_is_lossy,sha,size,encoding,ref,path, andsource. Missing refs or files returnerror_code="REMOTE_FILE_NOT_FOUND"; directory paths returnerror_code="PATH_IS_DIRECTORY". Rate-limited reads can returnerror_code="RATE_LIMITED"withretry_after_seconds. -
file operations: Success confirmation, file paths, content previews, batch read results with per-file success or error details plus
contentandsizefor successful reads. Batch reads can also surface per-filetruncated,truncation_info,continuation,encoding,file_type,total_size,returned_size,returned_lines,total_lines,start_line,end_line,start_byte,end_byte, andfreshness_noticewhen a managed checkout has no git remote, plus top-levelwarnings,files_truncated,files_skipped,skipped_preview, andcontinuation_hintwhen the response is cut short. On managed GitHub repos, origin-backedfile(action="read")can also returnbranch_name,sha,_remote_read, and_remote_read_window; when the checkout has no git remote, responses includefreshness_noticeand may setsourcetolocal_tree. Whenreturn_base64=true, the response includesencoding="base64". -
Large path and archive previews:
file(action="list")andfile(action="find")can returnfiles_preview,files_truncated,files_omitted_count,total_files,files_continuation_hint,note, andnarrowing_hintwhen many paths match.file(action="unzip")can similarly previewextracted_filesanddownload_linkswith fields such asextracted_files_preview,extracted_files_truncated,extracted_files_omitted_count,total_extracted_files,extracted_files_continuation_hint,download_links_preview,download_links_truncated,download_links_omitted_count,total_download_links, anddownload_links_continuation_hint. -
Zero-result repo search warning:
git_action(action="search"),git_action(action="grep"),file(action="search"), andfile(action="fast_search")can include_branch_warningwhen a repo on a non-default branch returns0matches. The object includescurrent_branch,default_branch, andmessage, which directs you to switch to the default branch, rungit_action(action="pull"), and retry the search. -
Managed-remote search freshness: On managed GitHub repos,
git_action(action="search")andgit_action(action="grep")against the managed base checkout run against refreshed origin state instead of the shared local clone. Searches against a WIP worktree still use that worktree. When the checkout has no git remote,file(action="fast_search")searches the local checkout and includesfreshness_notice. -
list_repos: Repository ids by default. With
details=true, each detail row includesmode,has_git_dir,has_remote,scope,owner_user_id,owner_bot_id, andundeletable, plus credentials-redactedremote_urlwhen present,clone_sourcewhen Genesis can infer the remote platform, andpathwheninclude_paths=true. - Errors: Detailed error messages with resolution guidance (e.g., authentication failures, merge conflicts).
egress_hint with the connection’s
allowance guidance. See Databricks App egress guidance.
Best Practices
Commit Often
Make small, focused commits with clear messages. Easier to review, revert, and understand history.
Branch Strategy
Use feature branches for development. Keep main/master stable and deployable.
Pull Before Push
Always pull latest changes before pushing to avoid conflicts and ensure smooth integration.
Meaningful Messages
Write descriptive commit messages explaining what and why, not just what changed.
Example: Complete Data Project Workflow
Advanced Features
Bulk File Operations
Copy multiple files matching patterns:preserve_structure defaults to true for file(action="copy") and file(action="move"). Glob patterns preserve the path below the matched parent scope. Exact file paths use their parent directory as the matched scope, so source_patterns=["reports/monthly/summary.md"] writes archive/summary.md instead of recreating archive/reports/monthly/summary.md.file(action="read_multiple") accepts a recommended maximum of 20 files per call and a hard limit of 100. Total returned content is capped at 200 KB; when that limit is reached, remaining files are reported in skipped, skipped_preview, and files_skipped, and the top-level response adds continuation_hint. Large files are automatically truncated to about 20 KB. Successful reads include per-file content and size; truncated entries are marked with truncated: true and can also include truncation_info, continuation, encoding, file_type, total_size, returned_size, returned_lines, total_lines, start_line, end_line, start_byte, and end_byte. If any entry is truncated, the batch response adds a warning explaining how to continue from the correct byte or line offset, and the top-level response includes files_truncated with the count of truncated files. Use file(action="read") for binary or Excel files.Very large
list, find, and unzip responses are previewed instead of returned in full. files and extracted_files previews are trimmed to the first 50 paths, and download_links previews are trimmed to the first 20 links. Use fields such as files_preview, files_truncated, files_omitted_count, total_files, files_continuation_hint, note, and narrowing_hint to narrow list or find queries, or extracted_files_preview and download_links_preview to inspect the extracted directory.Search Across Files
Find specific content in repository:When
git_action(action="search"), git_action(action="grep"), file(action="search"), or file(action="fast_search") returns zero matches for a repo on a non-default branch, the response can include _branch_warning with current_branch, default_branch, and message. Follow _branch_warning.message to switch to the default branch, run git_action(action="pull"), and retry the search.Fetch Deep History
Get more commit history for analysis:List Remote Repositories
Discover accessible GitHub repositories across your personal account and, by default, your organizations:include_orgs is optional and defaults to true. Each repo in the
response includes both private and visibility. Use visibility when
reporting GitHub access levels because private=true covers both
internal and private repositories. The summary object also includes
visibility_breakdown, which counts repositories by visibility.Troubleshooting
Authentication Failed
Authentication Failed
- Verify Personal Access Token is valid and not expired
- Check token has required scopes:
repo,workflow - Re-store credentials with
store_github_credentials
Push Rejected
Push Rejected
- Pull latest changes first:
git_action(action="pull") - Check for merge conflicts in
get_status - Verify you have write permissions to repository
File Not Found
File Not Found
- Verify file_path uses forward slashes (/)
- Check path is relative without leading slash
- Use
file(action="list")to see available files
Branch Already Exists
Branch Already Exists
- Switch to existing branch instead of creating
- Use
get_branchto check current branch - Delete old branch or use different name

