# GitHubAPIWrapper

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper)

Wrapper for GitHub API.

## Signature

```python
GitHubAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `github`
- `github_repo_instance`
- `github_repository`
- `github_app_id`
- `github_app_private_key`
- `active_branch`
- `github_base_branch`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/validate_environment)
- [`parse_issues()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/parse_issues)
- [`parse_pull_requests()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/parse_pull_requests)
- [`get_issues()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_issues)
- [`list_open_pull_requests()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/list_open_pull_requests)
- [`list_files_in_main_branch()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/list_files_in_main_branch)
- [`set_active_branch()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/set_active_branch)
- [`list_branches_in_repo()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/list_branches_in_repo)
- [`create_branch()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/create_branch)
- [`list_files_in_bot_branch()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/list_files_in_bot_branch)
- [`get_files_from_directory()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_files_from_directory)
- [`get_issue()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_issue)
- [`list_pull_request_files()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/list_pull_request_files)
- [`get_pull_request()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_pull_request)
- [`create_pull_request()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/create_pull_request)
- [`comment_on_issue()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/comment_on_issue)
- [`create_file()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/create_file)
- [`read_file()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/read_file)
- [`update_file()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/update_file)
- [`delete_file()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/delete_file)
- [`search_issues_and_prs()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/search_issues_and_prs)
- [`search_code()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/search_code)
- [`create_review_request()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/create_review_request)
- [`get_latest_release()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_latest_release)
- [`get_releases()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_releases)
- [`get_release()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/get_release)
- [`run()`](https://reference.langchain.com/python/langchain-community/utilities/github/GitHubAPIWrapper/run)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/utilities/github.py#L28)