> ## Documentation Index
> Fetch the complete documentation index at: https://opensource.weam.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub

Connect with GitHub repositories and perform development operations through OAuth integration.

## Available Functions

### Repository Management

* `github_get_repositories`
* `github_get_repository_info`
* `github_get_commits`
* `github_get_repository_branches`
* `github_get_tags_or_branches`

### Branch Operations

* `github_create_branch`

### Issues and Pull Requests

* `github_get_repository_issues`
* `github_create_pull_request`
* `github_get_pull_request_details`
* `github_get_pull_requests`

### User Information

* `github_get_user_info`
* `github_global_search`

## OAuth Setup

### 1. Create OAuth App

1. Visit [github.com/settings/developers](https://github.com/settings/developers)
2. Click **"New OAuth App"**

### 2. Configure Application

* **Application Name**: `Your App Name`
* **Homepage URL**: `https://yourexampledomain.com`
* **Authorization Callback URL**:
  ```
  https://yourexampledomain.com/api/auth/github/callback
  ```

### 3. Environment Variables

Add to your `.env` file:

```env theme={null}
GITHUB_CLIENT_ID=your-client-id
GITHUB_CLIENT_SECRET=your-client-secret
GITHUB_REDIRECT_URI=https://yourexampledomain.com/api/auth/github/callback
```

<Info>
  Ensure redirect URLs match exactly between your GitHub app settings and environment configuration.
</Info>
