ジェネレーター ノード内で GitHub ツールを構成し使用する方法を学び、AI モデルが GitHub リポジトリと直接連携できるようにします。
gemini-2.5-pro
)で、ツールタブを選択します。接続可能な統合の一覧が表示されます。
createIssue
、getPullRequest
、createOrUpdateFile
)。
getFileContents
owner
(リポジトリ所有者)path
(ファイル/ディレクトリへのパス)repo
(リポジトリ名)branch
(内容を取得するブランチ)listBranches
owner
(リポジトリ所有者)repo
(リポジトリ名)page
(ページネーション用ページ番号、最小1)perPage
(1ページあたりの結果数、最小1、最大1000)createIssue
owner
(リポジトリ所有者)repo
(リポジトリ名)title
(課題タイトル)body
(課題本文内容)assignees
(担当するユーザー名の配列)labels
(適用するラベルの配列)milestone
(マイルストーン番号)getIssue
owner
(リポジトリ所有者)repo
(リポジトリ名)issueNumber
(課題番号)listIssues
owner
(Repository owner)repo
(Repository name)state
(open/closed/all)labels
(Array of labels to filter by)sort
(created/updated/comments)direction
(asc/desc)since
(ISO 8601 timestamp)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)updateIssue
owner
(Repository owner)repo
(Repository name)issueNumber
(Issue number to update)title
(New title)body
(New description)state
(open/closed)assignees
(New assignees array)labels
(New labels array)milestone
(New milestone number)addIssueComment
owner
(Repository owner)repo
(Repository name)issueNumber
(Issue number)body
(Comment content)getIssueComments
owner
(Repository owner)repo
(Repository name)issueNumber
(Issue number)page
(Page number)perPage
(Number of records per page)createPullRequest
owner
(Repository owner)repo
(Repository name)title
(PR title)head
(Branch containing changes)base
(Branch to merge into)body
(PR description)draft
(Create as draft PR)maintainerCanModify
(Allow maintainer edits)getPullRequest
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)updatePullRequest
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)title
(New title)body
(New description)state
(open/closed)base
(New base branch name)maintainerCanModify
(Allow maintainer edits)listPullRequests
owner
(Repository owner)repo
(Repository name)state
(open/closed/all)head
(Filter by head user/org and branch)base
(Filter by base branch)sort
(created/updated/popularity/long-running)direction
(asc/desc)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)getPullRequestComments
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)getPullRequestFiles
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)getPullRequestReviews
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)getPullRequestStatus
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)createPullRequestReview
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)event
(APPROVE/REQUEST_CHANGES/COMMENT)body
(Review comment text)commitId
(SHA of commit to review)comments
(Array of line-specific comment objects)addPullRequestReviewComment
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)body
(Review comment text)inReplyTo
(ID of comment to reply to)commitId
(SHA of commit to comment on)path
(Relative path to file)line
(Line number in the diff)side
(LEFT/RIGHT)startLine
(For multi-line comments)startSide
(LEFT/RIGHT for multi-line)subjectType
(line/file)mergePullRequest
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)mergeMethod
(merge/squash/rebase)commitTitle
(Title for merge commit)commitMessage
(Extra detail for merge commit)updatePullRequestBranch
owner
(Repository owner)repo
(Repository name)pullNumber
(Pull request number)expectedHeadSha
(Expected SHA of the PR’s HEAD ref)createBranch
owner
(Repository owner)repo
(Repository name)branch
(Name for new branch)fromBranch
(Source branch, defaults to repo default)createOrUpdateFile
owner
(Repository owner)repo
(Repository name)path
(Path where to create/update the file)content
(Content of the file)message
(Commit message)branch
(Branch to create/update the file in)sha
(SHA of file being replaced, required for updates)getCommit
owner
(Repository owner)repo
(Repository name)sha
(Commit SHA, branch name, or tag name)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)listCommits
owner
(Repository owner)repo
(Repository name)sha
(SHA or branch name)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)searchCode
q
(Search query using GitHub code search syntax)sort
(indexed)order
(asc/desc)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)searchIssues
q
(Search query using GitHub issues search syntax)sort
(comments/reactions/reactions-+1/reactions—1/reactions-smile/reactions-thinking_face/reactions-heart/reactions-tada/interactions/created/updated)order
(asc/desc)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)searchPullRequests
q
(Search query using GitHub issues search syntax, automatically adds type:pr)sort
(comments/reactions/reactions-+1/reactions—1/reactions-smile/reactions-thinking_face/reactions-heart/reactions-tada/interactions/created/updated)order
(asc/desc)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)searchRepositories
query
(Search query)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)searchUsers
q
(Search query using GitHub users search syntax)sort
(followers/repositories/joined)order
(asc/desc)page
(Page number, min 1)perPage
(Results per page, min 1, max 100)getFileContents
、createPullRequest
、createBranch
、createOrUpdateFile
ツールを有効化したと仮定します。