AIチャット向けGitHub連携
GitHubアカウントを接続すると、Endlessエージェントがリポジトリの検索、Issueの閲覧と作成、プルリクエストのレビュー、変更のプッシュを、いつも使っているチャットから行えます。
エージェントがGitHubでできること
- 01
コードとリポジトリを検索
アクセスできるすべてのリポジトリから関数を探したり、ファイルやフォルダを読み取ったり、リポジトリのブランチ、タグ、リリースを一覧表示したりできます。
- 02
Issueの確認と整理
Issueの一覧表示と検索、コメント付きでの読み取り、新規作成、更新、コメント、サブIssueの追加ができます。
- 03
プルリクエストのレビュー
プルリクエストの読み取り、行コメント付きのレビュー作成、Copilotへのレビュー依頼、準備ができたらマージまで行えます。
- 04
ファイルとブランチの変更
ブランチの作成、ファイルの編集、複数ファイルを1回のコミットでプッシュし、その変更でプルリクエストを作成できます。
- 05
コミットの確認
ブランチのコミット履歴の読み取り、個別のコミットの表示、メッセージや作成者によるコミット検索ができます。
- 06
漏えいしたシークレットのスキャン
プッシュする前に、ファイルや最近の変更にAPIキー、パスワード、トークンが含まれていないか確認します。
質問の例
- “今週acme/webにマージされたプルリクエストを、領域ごとにまとめてください。”
- “私たちのリポジトリで課金Webhookを呼び出している箇所を見つけて、何をしているか説明してください。”
- “サインアップ後のリダイレクトが壊れている件について、このチャットの再現手順を添えて、acme/webにIssueを作成してください。”
- “acme/apiのプルリクエスト482をレビューして、リスクのある箇所にコメントしてください。”
設定方法
- 01
コネクタを開く
Endlessで設定を開き、コネクタに移動します。
- 02
GitHubを接続
カードからGitHubを接続し、GitHubのログインページでアクセスを承認します。
- 03
チャットで質問
チャットを開始し、必要なことを依頼してください。リクエストに応じて、エージェントがGitHubを使います。
エージェントが使えるすべてのGitHubツール
GitHubのMCPサーバーが掲載している44個のツールです。エージェントがリクエストに合ったツールを選びます。
| ツール | GitHubの説明 |
|---|---|
| add_comment_to_pending_review | Add review comment to the requester's latest pending pull request review. |
| add_issue_comment | Add a comment to a specific issue in a GitHub repository. |
| add_reply_to_pull_request_comment | Add a reply to an existing pull request comment. |
| create_branch | Create a new branch in a GitHub repository |
| create_or_update_file | Create or update a single file in a GitHub repository. |
| create_pull_request | Create a new pull request in a GitHub repository. |
| create_repository | Create a new GitHub repository in your account or specified organization |
| delete_file | Delete a file from a GitHub repository |
| fork_repository | Fork a GitHub repository to your account or specified organization |
| get_commit | Get details for a commit from a GitHub repository |
| get_file_contents | Get the contents of a file or directory from a GitHub repository |
| get_label | Get a specific label from a repository. |
| get_latest_release | Get the latest release in a GitHub repository |
| get_me | Get details of the authenticated GitHub user. |
| get_release_by_tag | Get a specific release by its tag name in a GitHub repository |
| get_tag | Get details about a specific git tag in a GitHub repository |
| get_team_members | Get member usernames of a specific team in an organization. |
| get_teams | Get details of the teams the user is a member of. |
| issue_read | Get information about a specific issue in a GitHub repository. |
| issue_write | Create a new or update an existing issue in a GitHub repository. |
| list_branches | List branches in a GitHub repository |
| list_commits | Get list of commits of a branch in a GitHub repository. |
| list_issue_fields | List issue fields for a repository or organization. |
| list_issue_types | List supported issue types for a repository or its owner organization. |
| list_issues | List issues in a GitHub repository. |
| list_pull_requests | List pull requests in a GitHub repository. |
| list_releases | List releases in a GitHub repository |
| list_repository_collaborators | List collaborators of a GitHub repository. |
| list_tags | List git tags in a GitHub repository |
| merge_pull_request | Merge a pull request in a GitHub repository. |
| pull_request_read | Get information on a specific pull request in GitHub repository. |
| pull_request_review_write | Create and/or submit, delete review of a pull request. |
| push_files | Push multiple files to a GitHub repository in a single commit |
| request_copilot_review | Request a GitHub Copilot code review for a pull request. |
| run_secret_scanning | Scan files, content, or recent changes for secrets such as API keys, passwords, tokens, and credentials. |
| search_code | Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. |
| search_commits | Search for commits across GitHub repositories using GitHub's commit search syntax. |
| search_issues | Search for issues in GitHub repositories using issues search syntax already scoped to is:issue |
| search_pull_requests | Search for pull requests in GitHub repositories using issues search syntax already scoped to is:pr |
| search_repositories | Find GitHub repositories by name, description, readme, topics, or other metadata. |
| search_users | Find GitHub users by username, real name, or other profile information. |
| sub_issue_write | Add a sub-issue to a parent issue in a GitHub repository. |
| update_pull_request | Update an existing pull request in a GitHub repository. |
| update_pull_request_branch | Update the branch of a pull request with the latest changes from the base branch. |
よくある質問
EndlessはGitHubのどのような権限を求めますか?
接続すると、EndlessはGitHubにrepo、read:org、read:userのスコープを求めます。エージェントがアクセスできるのは、お使いのGitHubアカウントがアクセスできるリポジトリと組織だけです。
エージェントはGitHub上のコードを変更できますか?
はい。ブランチの作成、ファイルの編集やプッシュ、プルリクエストの作成やマージを、お使いのアカウントとして実行できます。実行されるのはリクエストで求めたときなので、変更したい内容を具体的に伝えてください。
GitHubのアカウントは必要ですか?
はい。ワークスペースのメンバーがそれぞれ自分のGitHubアカウントを接続し、エージェントはそのアカウントの権限で動作します。ワークスペースの他のメンバーがその接続を使うことはできません。
ワークスペースの管理者はGitHubをオフにできますか?
はい。管理者は、コネクタ設定のワークスペースタブで、ワークスペース全体のコネクタをオフにできます。メンバーは、オンのままのコネクタの中から自分で選べます。
スケジュールタスクでGitHubを使えますか?
はい。スケジュールタスクでは、作成者が接続したコネクタを使えます。そのため、週次レポートでもチャットと同じようにGitHubを読み取れます。
GitHubを使えるチャットモデルはどれですか?
Endlessで選んだチャットモデルがGitHubのツールを使えます。会話の途中でモデルを切り替えても、接続は維持されます。