The GitHub extension allows your agent to interact with GitHub repositories, issues, pull requests, and more, making it ideal for automating code-related tasks, managing projects, or gathering information from GitHub.Documentation Index
Fetch the complete documentation index at: https://docs.ironclaw.com/llms.txt
Use this file to discover all available pages before exploring further.
Setup
Configure Browser OAuth (Preferred)
Create a GitHub OAuth app at github.com/settings/apps
and set its callback URL to the IronClaw OAuth callback URL your gateway uses.Then expose the app credentials to IronClaw:Now authenticate:IronClaw will open the browser OAuth flow and store the resulting
github_token.Available Actions:
Here are some of the actions your agent can perform with the GitHub extension:get_repo: Retrieve repository informationlist_issues: List all issues in a repositorycreate_issue: Create a new issueget_issue: Get details of a specific issuelist_issue_comments: List comments on an issuecreate_issue_comment: Add a comment to an issuelist_pull_requests: List pull requestscreate_pull_request: Create a new pull requestget_pull_request: Get details of a specific pull requestget_pull_request_files: Get the list of files in a pull requestcreate_pr_review: Submit a pull request reviewlist_pull_request_comments: List review comments on a pull requestreply_pull_request_comment: Reply to a pull request review commentget_pull_request_reviews: Get reviews for a pull requestget_combined_status: Get the combined status for a refmerge_pull_request: Merge a pull requestlist_repos: List repositories (user/org)get_file_content: Retrieve the content of a file in the repotrigger_workflow: Manually trigger a GitHub Actions workflowget_workflow_runs: List recent workflow runshandle_webhook: Handle a GitHub webhook payload
Working on Public Repositories
Lets configure our agent to have its own github account, which it can use to create issues and comment on PRs in public repositories.Create a new GitHub account
Go to https://github.com and create a new account for your agent. If you are already logged in with your personal account you will need to briefly log out to create the new account, but you can log back in right after
Generate a Personal Access Token
On the agent’s GitHub account, go to Settings -> Developer settings -> Personal access tokens -> Tokens (classic) and generate a new token (classic) with the following permissions:
repo -> public_repoAuthenticate the GitHub Extension
Now that you have either OAuth app credentials or a PAT, authenticate the GitHub extension:If
GITHUB_OAUTH_CLIENT_ID and GITHUB_OAUTH_CLIENT_SECRET are set, IronClaw
will use browser OAuth. Otherwise it falls back to prompting for a PAT.