Docs
Sign in

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.

Screenshot to add: The Add GitHub credential window with the token box and the optional API base URL field.

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

  1. Create a token in GitHub

    In GitHub, open your developer settings and create a personal access token. Copy it.

  2. Open My Connectors

    In TAO, go to Settings > Connectors.

  3. Open the GitHub card

    Click Connect on GitHub. If it is missing, an admin has not switched it on.

  4. Paste the token

    Paste the token in the masked secret box.

  5. 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.

  6. 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 nameWhat it doesRead or Write
github_list_repositoriesLists repositories the account can reach, with default branch. Always the first call.Read
github_get_file_contentReads a file, or lists a folder.Read
github_list_branchesLists branches and whether each is protected.Read
github_list_commitsLists recent commits, filterable by branch, file, author and date.Read
github_search_issuesSearches issues and pull requests across repositories.Read
github_get_issueGets one issue in full.Read
github_list_issuesLists a repository's issues.Read
github_list_issue_commentsLists comments on an issue or pull request, oldest first.Read
github_get_pull_requestGets one pull request, including whether it can be merged.Read
github_list_pull_requestsLists a repository's pull requests.Read
github_list_pull_request_filesLists the files a pull request changes, with diffs.Read
github_list_pull_request_reviewsLists reviews and their state, such as approved.Read
github_create_issueOpens an issue.Write (needs approval)
github_update_issueChanges an issue. Also closes and reopens it.Write (needs approval)
github_add_issue_commentComments on an issue or pull request.Write (needs approval)
github_add_issue_labelsAdds labels without removing existing ones.Write (needs approval)
github_create_pull_requestOpens a pull request.Write (needs approval)
github_request_pull_request_reviewersAsks people or teams to review a pull request.Write (needs approval)
github_create_or_update_fileCommits one file. This makes a real commit.Write (needs approval)
github_merge_pull_requestMerges a pull request. No undo.Write (needs approval, irreversible)
github_delete_branchPermanently 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_file needs 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.