Overview
Github allows developers to create, store, manage, and share their code. Through Langdock’s integration, you can access and manage Github directly from your conversations.Authentication: OAuth
Category: Development
Availability: All workspace plans
Available Actions
List pull requests
github.list_pull_requests
Lists all pull requests in a repository
Requires Confirmation: No
Parameters:
owner(TEXT, Required):repository(TEXT, Required):state(SELECT, Optional): The state of the pull requests to list. Default: openlimit(NUMBER, Optional): The maximum number of pull requests to return. If not specified, all pull requests will be returned.sort(SELECT, Optional): What to sort results bydirection(SELECT, Optional): The direction to sort resultscreatedAfter(TEXT, Optional): Only return PRs created after this date (ISO 8601 format, e.g. 2025-01-01)updatedAfter(TEXT, Optional): Only return PRs updated after this date (ISO 8601 format, e.g. 2025-01-01)
Get pull request
github.get_pull_request
Retrieves detailed information about the specified pull request
Requires Confirmation: No
Parameters:
owner(TEXT, Required): Owner of the repository you want to get the pull requests details fromrepository(TEXT, Required): The repository to look intopullRequestNumber(NUMBER, Required): The number of the pull request you are interested in
Get pull request commits
github.get_pull_request_commits
Gets the commits of a given pull request
Requires Confirmation: No
Parameters:
owner(TEXT, Required): Owner of the repository you want to get the pull requests commits fromrepository(TEXT, Required): The repository you want to retrieve the pull requests commits frompullRequestNumber(NUMBER, Required): The number of the pull request
Get pull request files
github.get_pull_request_files
Lists files changed in a pull request
Requires Confirmation: No
Parameters:
owner(TEXT, Required): Owner of the repositoryrepository(TEXT, Required): Repository namepullRequestNumber(NUMBER, Required): The number of the pull request
Get pull request comments
github.get_pull_request_comments
Gets the comments of a given pull request
Requires Confirmation: No
Parameters:
owner(TEXT, Required): Owner of the repository you want to get the pull requests comments fromrepository(TEXT, Required): The repository you want to retrieve the pull requests comments frompullRequestNumber(NUMBER, Required): The number of the pull request
Create pull request
github.create_pull_request
Creates a pull request
Requires Confirmation: Yes
Parameters:
owner(TEXT, Required): The owner of the Github repository you want to create a pull request forrepository(TEXT, Required): The name of the Github repository you want to create a pull request fortitle(TEXT, Required): The title of the pull requestbody(MULTI_LINE_TEXT, Required): The body / description of the pull requesttargetBranch(TEXT, Required): The name of the branch you want to merge the changes intogithubUsername(TEXT, Required):sourceBranch(TEXT, Required):
List issues
github.list_issues
Lists all issues in a given repository
Requires Confirmation: No
Parameters:
owner(TEXT, Required):repository(TEXT, Required):
Create issue
github.create_issue
Creates an issue for a specified repository
Requires Confirmation: Yes
Parameters:
owner(TEXT, Required): The owner of the Github repository you want to create a pull request forrepository(TEXT, Required): The name of the Github repository you want to create a pull request fortitle(TEXT, Required): The title of the pull requestbody(MULTI_LINE_TEXT, Required): The body / description of the pull requestassignees(TEXT, Optional): GitHub usernames of people who should be assigned to this issue. You can provide multiple assignees as a comma-separated list (e.g., username1, username2) or a single usernamelabels(TEXT, Optional): Labels to associate with this issue. You can provide multiple labels as a comma-separated list (e.g., bug, enhancement) or a single label name
Update issue
github.update_issue
Updates a specified issue
Requires Confirmation: Yes
Parameters:
owner(TEXT, Required): The owner of the Github repository you want to create a pull request forrepository(TEXT, Required): The name of the Github repository you want to create a pull request fortitle(TEXT, Optional): The title of the pull requestbody(MULTI_LINE_TEXT, Optional): The body / description of the pull requestassignees(TEXT, Optional): GitHub usernames of people who should be assigned to this issue. You can provide multiple assignees as a comma-separated list (e.g., username1, username2) or a single usernamelabels(TEXT, Optional): Labels to associate with this issue. You can provide multiple labels as a comma-separated list (e.g., bug, enhancement) or a single label nameissueNumber(TEXT, Required): The number of the issue you want to edit
Create issue comment
github.create_issue_comment
Creates a comment on a specified issue
Requires Confirmation: Yes
Parameters:
owner(TEXT, Required): The owner of the Github repository you want to create a pull request forrepository(TEXT, Required): The name of the Github repository you want to create a pull request forissueNumber(TEXT, Required): The number of the issue you want to create a comment forcomment(TEXT, Required): The comment you want to create
List repositories
github.list_repositories
Lists repositories accessible to the authenticated user
Requires Confirmation: No
Parameters:
type(SELECT, Optional): Filter repositories by type. Use ‘all’ for all repos, ‘owner’ for repos you own, ‘public’ for public repos, ‘private’ for private repos, ‘member’ for repos you are a member ofsort(SELECT, Optional): Property to sort results bydirection(SELECT, Optional): Sort directionresultsPerPage(NUMBER, Optional): Number of results to return (1-100). Default is 30
Get repository content
github.get_repository_content
Lists files and directories in a repository path. Use this to browse the structure of a repository before retrieving specific files
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositorypath(TEXT, Optional): The directory path to list contents of. Leave empty to list the root directory. Use forward slashes (e.g., src/components)branchOrCommit(TEXT, Optional): The name of the branch, tag, or commit SHA to get contents from. Defaults to the repository’s default branch if not specified
Get file content
github.get_file_content
Retrieves the actual content of a file from a repository. Use get_repository_content first to find the file path, then use this action to read its contents
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositoryfilePath(TEXT, Required): The full path to the file within the repository (e.g., src/index.ts, README.md, package.json)branchOrCommit(TEXT, Optional): The name of the branch, tag, or commit SHA to get the file from. Defaults to the repository’s default branch if not specified
Search code
github.search_code
Searches for code and files across GitHub repositories. Use ‘filename’ to find files by name (e.g., schema.prisma, package.json). Use ‘query’ to search for text INSIDE file contents. You can combine both. Always specify owner and repository when searching within a specific repo for best results
Requires Confirmation: No
Parameters:
filename(TEXT, Optional): Find files by their name. Use this when the user wants to find a specific file like ‘schema.prisma’, ‘package.json’, ‘README.md’, ‘.env’. This searches for files with this exact name. You can use partial names too. Either filename or query (or both) must be providedcontentSearch(TEXT, Optional): Search for text INSIDE files (file contents). Use this to find code patterns, function definitions, imports, or specific text. Examples: ‘async function’, ‘import express’, ‘class UserController’. Either content search or filename (or both) must be providedowner(TEXT, Optional): The username or organization that owns the repository. IMPORTANT: Always provide this along with repository name when searching within a specific repo. Example: ‘langdock’ for langdock/corerepository(TEXT, Optional): The repository name to search in. Must be used together with owner. Example: ‘core’ for langdock/corepathFilter(TEXT, Optional): Limit search to files in a specific directory path within the repository. Examples: ‘src’, ‘packages/prisma’, ‘tests/unit’fileExtension(TEXT, Optional): Filter by file extension. Examples: ‘ts’, ‘js’, ‘py’, ‘prisma’, ‘json’. Do not include the dotlanguage(TEXT, Optional): Filter by programming language. Examples: ‘TypeScript’, ‘JavaScript’, ‘Python’, ‘Java’resultsPerPage(NUMBER, Optional): Number of results to return (1-100). Default is 30
List branches
github.list_branches
Lists all branches in a repository. Useful for branch selection in workflows or checking available branches before operations
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositoryprotected(SELECT, Optional): If true, only return protected brancheslimit(NUMBER, Optional): The maximum number of branches to return. If not specified, all branches will be returned
Get branch
github.get_branch
Retrieves detailed information about a specific branch, including protection status and latest commit
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositorybranchName(TEXT, Required): The name of the branch to retrieve
List releases
github.list_releases
Lists all releases in a repository. Useful for changelog automation, docs sync, and tracking deployments
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositorypublishedAfter(TEXT, Optional): Only return releases published after this date (ISO 8601 format, e.g. 2025-01-01). Useful for incremental processinglimit(NUMBER, Optional): The maximum number of releases to return. If not specified, all releases will be returned
Get release
github.get_release
Retrieves detailed information about a specific release by its ID, including release notes and downloadable assets
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositoryreleaseId(NUMBER, Required): The numeric ID of the release
Get release by tag
github.get_release_by_tag
Retrieves detailed information about a release by its tag name (e.g., v1.0.0). More intuitive than ID lookup when the tag is known
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositorytagName(TEXT, Required): The tag name of the release (e.g., v1.0.0, release-2025-01)
Compare
github.compare
Compares two branches, tags, or commits and shows the diff. Returns commits, changed files with patches, and stats. Use for release diffs, PR previews, or any ref comparison
Requires Confirmation: No
Parameters:
owner(TEXT, Required): The owner (username or organization) of the repositoryrepository(TEXT, Required): The name of the repositorybase(TEXT, Required): The base ref to compare from. Can be a branch name (main), tag (v1.0.0), or commit SHAhead(TEXT, Required): The head ref to compare to. Can be a branch name (main), tag (v1.1.0), or commit SHA