Setup
Get an API Key
To use the Github extension, you need to obtain an API key from Brave Search. You can get one by signing up at
Install the Web Search Extension
To install the Web Search extension, run the following command in your terminal:
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_pull_requests: List pull requestsget_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_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 runs
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 the token, you can authenticate the Github extension by running:Then follow the prompts to enter the token you just generated.