Skip to main content

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: open
  • limit (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 by
  • direction (SELECT, Optional): The direction to sort results
  • createdAfter (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)
Output: Returns the operation result

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 from
  • repository (TEXT, Required): The repository to look into
  • pullRequestNumber (NUMBER, Required): The number of the pull request you are interested in
Output: Returns the operation result

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 from
  • repository (TEXT, Required): The repository you want to retrieve the pull requests commits from
  • pullRequestNumber (NUMBER, Required): The number of the pull request
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): Repository name
  • pullRequestNumber (NUMBER, Required): The number of the pull request
Output: Returns the operation result

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 from
  • repository (TEXT, Required): The repository you want to retrieve the pull requests comments from
  • pullRequestNumber (NUMBER, Required): The number of the pull request
Output: Returns the operation result

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 for
  • repository (TEXT, Required): The name of the Github repository you want to create a pull request for
  • title (TEXT, Required): The title of the pull request
  • body (MULTI_LINE_TEXT, Required): The body / description of the pull request
  • targetBranch (TEXT, Required): The name of the branch you want to merge the changes into
  • githubUsername (TEXT, Required):
  • sourceBranch (TEXT, Required):
Output: Returns the operation result

List issues

github.list_issues
Lists all issues in a given repository Requires Confirmation: No Parameters:
  • owner (TEXT, Required):
  • repository (TEXT, Required):
Output: Returns the operation result

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 for
  • repository (TEXT, Required): The name of the Github repository you want to create a pull request for
  • title (TEXT, Required): The title of the pull request
  • body (MULTI_LINE_TEXT, Required): The body / description of the pull request
  • assignees (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 username
  • labels (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
Output: Returns the operation result

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 for
  • repository (TEXT, Required): The name of the Github repository you want to create a pull request for
  • title (TEXT, Optional): The title of the pull request
  • body (MULTI_LINE_TEXT, Optional): The body / description of the pull request
  • assignees (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 username
  • labels (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
  • issueNumber (TEXT, Required): The number of the issue you want to edit
Output: Returns the operation result

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 for
  • repository (TEXT, Required): The name of the Github repository you want to create a pull request for
  • issueNumber (TEXT, Required): The number of the issue you want to create a comment for
  • comment (TEXT, Required): The comment you want to create
Output: Returns the operation result

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 of
  • sort (SELECT, Optional): Property to sort results by
  • direction (SELECT, Optional): Sort direction
  • resultsPerPage (NUMBER, Optional): Number of results to return (1-100). Default is 30
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • path (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
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • filePath (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
Output: Returns the operation result

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 provided
  • contentSearch (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 provided
  • owner (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/core
  • repository (TEXT, Optional): The repository name to search in. Must be used together with owner. Example: ‘core’ for langdock/core
  • pathFilter (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 dot
  • language (TEXT, Optional): Filter by programming language. Examples: ‘TypeScript’, ‘JavaScript’, ‘Python’, ‘Java’
  • resultsPerPage (NUMBER, Optional): Number of results to return (1-100). Default is 30
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • protected (SELECT, Optional): If true, only return protected branches
  • limit (NUMBER, Optional): The maximum number of branches to return. If not specified, all branches will be returned
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • branchName (TEXT, Required): The name of the branch to retrieve
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • publishedAfter (TEXT, Optional): Only return releases published after this date (ISO 8601 format, e.g. 2025-01-01). Useful for incremental processing
  • limit (NUMBER, Optional): The maximum number of releases to return. If not specified, all releases will be returned
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • releaseId (NUMBER, Required): The numeric ID of the release
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • tagName (TEXT, Required): The tag name of the release (e.g., v1.0.0, release-2025-01)
Output: Returns the operation result

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 repository
  • repository (TEXT, Required): The name of the repository
  • base (TEXT, Required): The base ref to compare from. Can be a branch name (main), tag (v1.0.0), or commit SHA
  • head (TEXT, Required): The head ref to compare to. Can be a branch name (main), tag (v1.1.0), or commit SHA
Output: Returns the operation result