GitHub
GitHub is where many teams store their code and track work, and the GitHub connector lets TAO read repositories, issues and pull requests, and make changes with your approval.
What you can do
Illustrative examples:
- "Which GitHub repositories do I have?"
- "Show me the open issues labelled regression."
- "What does pull request 412 change, and has it been approved?"
- "Raise an issue for the login bug."
- "Add the needs-review label to issue 1042."
- "Merge pull request 412 into main." (This needs careful approval.)
Before you connect
- A GitHub account that can see the repositories you want TAO to use.
- A personal access token (PAT). A PAT is a long password you create in your GitHub settings so another program can act for you. GitHub recommends fine-grained tokens, and the connector accepts those and classic ones. The product code does not list the exact permissions each tool needs, so give the token only what your team is comfortable with.
- Write access to the repository, for labels and assignees. GitHub quietly ignores labels, assignees and milestones if your token lacks push access.
- For GitHub Enterprise Server only: the API address of your server. For example
https://your-host/api/v3.
Connect it
Create a token in GitHub
In GitHub, open your developer settings and create a personal access token. Copy it.
Open My Connectors
In TAO, go to Settings > Connectors.
Open the GitHub card
Click Connect on GitHub. If it is missing, an admin has not switched it on.
Paste the token
Paste the token in the masked secret box.
Leave the API base URL blank, unless you use Enterprise Server
GitHub API base URL (Enterprise Server only) is optional. Leave it empty for github.com. For Enterprise Server, enter the API address. The plain web address is refused because it serves web pages, not the API.
Save
Optionally add a Label, then click Save.
As soon as a token is saved, all 21 tools are available to that person. There is no separate switch.
Tools
Reads run straight away. Writes wait for a person to approve them in the approvals queue.
| Tool name | What it does | Read or Write |
|---|---|---|
github_list_repositories | Lists repositories the account can reach, with default branch. Always the first call. | Read |
github_get_file_content | Reads a file, or lists a folder. | Read |
github_list_branches | Lists branches and whether each is protected. | Read |
github_list_commits | Lists recent commits, filterable by branch, file, author and date. | Read |
github_search_issues | Searches issues and pull requests across repositories. | Read |
github_get_issue | Gets one issue in full. | Read |
github_list_issues | Lists a repository's issues. | Read |
github_list_issue_comments | Lists comments on an issue or pull request, oldest first. | Read |
github_get_pull_request | Gets one pull request, including whether it can be merged. | Read |
github_list_pull_requests | Lists a repository's pull requests. | Read |
github_list_pull_request_files | Lists the files a pull request changes, with diffs. | Read |
github_list_pull_request_reviews | Lists reviews and their state, such as approved. | Read |
github_create_issue | Opens an issue. | Write (needs approval) |
github_update_issue | Changes an issue. Also closes and reopens it. | Write (needs approval) |
github_add_issue_comment | Comments on an issue or pull request. | Write (needs approval) |
github_add_issue_labels | Adds labels without removing existing ones. | Write (needs approval) |
github_create_pull_request | Opens a pull request. | Write (needs approval) |
github_request_pull_request_reviewers | Asks people or teams to review a pull request. | Write (needs approval) |
github_create_or_update_file | Commits one file. This makes a real commit. | Write (needs approval) |
github_merge_pull_request | Merges a pull request. No undo. | Write (needs approval, irreversible) |
github_delete_branch | Permanently deletes a branch. | Write (needs approval, irreversible) |
Total: 21 tools, 12 reads and 9 writes.
Limits and good to know
- Merge and delete branch confirm a commit ID. TAO must quote the exact commit ID it looked at. If the branch has moved since, the action is refused. Other branches or pull requests with similar names are not mistaken for it.
- Updating an issue replaces labels and assignees. To add a label safely, TAO uses the add-labels tool.
- A successful result can still miss changes. If your token lacks push access, GitHub accepts the issue but drops labels or assignees. TAO checks the result and reports what was dropped.
- A "not found" can mean "no permission". GitHub hides private items the same way.
- Bounded results. Lists, commit history and folder listings (up to 1,000 entries) are slices, not the whole story.
- Issues exclude pull requests by default. The count says how many were left out.
- Merging runs your pipelines. Merging can trigger releases or deployments right away.
- Files are replaced in full.
github_create_or_update_fileneeds the whole new text, and the file's current version marker to update. - No issue delete. GitHub does not allow deleting issues through its API. Closing is the way to retire one.
- GitHub Models is not included. None of the tools use GitHub's AI models service.