Sourcegraph
sourcegraphSourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.
Acciones disponibles (8)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Check Site Settings Edit PermissionSOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSIONAcciónTool to check whether site settings can be edited through the api. use when you need to confirm the api allows site settings edits before attempting configuration changes.
SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSIONAcciónTool to check whether site settings can be edited through the api. use when you need to confirm the api allows site settings edits before attempting configuration changes.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioGraphQL response data containing site settings edit permission flag.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Compare CommitsSOURCEGRAPH_COMPARE_COMMITSAcciónTool to compare two commits in a repository and retrieve their file diffs. use after confirming the repository name and commit shas to inspect differences.
SOURCEGRAPH_COMPARE_COMMITSAcciónTool to compare two commits in a repository and retrieve their file diffs. use after confirming the repository name and commit shas to inspect differences.
Parámetros de entrada
basestringObligatorioBase commit SHA or ref to compare from
headstringObligatorioHead commit SHA or ref to compare to
repostringObligatorioRepository name in format 'github.com/owner/repo'
Parámetros de salida
dataobjectObligatorioGraphQL response data
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Commit DetailsSOURCEGRAPH_GET_COMMIT_DETAILSAcciónGet detailed information about a specific commit in a repository.
SOURCEGRAPH_GET_COMMIT_DETAILSAcciónGet detailed information about a specific commit in a repository.
Parámetros de entrada
revstringObligatorioCommit SHA, branch name, or tag to get details for
repostringObligatorioRepository name in format 'github.com/owner/repo'
Parámetros de salida
dataobjectObligatorioGraphQL response data
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Current UserSOURCEGRAPH_GET_CURRENT_USERAcciónTool to retrieve information about the currently authenticated user. use when needing confirmation of identity via sourcegraph graphql api.
SOURCEGRAPH_GET_CURRENT_USERAcciónTool to retrieve information about the currently authenticated user. use when needing confirmation of identity via sourcegraph graphql api.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioGraphQL response data containing the current user.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get File ContentsSOURCEGRAPH_GET_FILE_CONTENTSAcciónTool to fetch the contents of a specified file on the default branch. use when you need raw file text without cloning the repo or using a slower code-host api.
SOURCEGRAPH_GET_FILE_CONTENTSAcciónTool to fetch the contents of a specified file on the default branch. use when you need raw file text without cloning the repo or using a slower code-host api.
Parámetros de entrada
file_pathstringObligatorioPath to the file in the repository, relative to the root, e.g., 'README.md'.
repo_namestringObligatorioFull repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List RepositoriesSOURCEGRAPH_LIST_REPOSITORIESAcciónTool to list repositories on the sourcegraph instance. use when you need to paginate through all available repositories.
SOURCEGRAPH_LIST_REPOSITORIESAcciónTool to list repositories on the sourcegraph instance. use when you need to paginate through all available repositories.
Parámetros de entrada
afterstringPagination cursor returned from previous page; omit for first page.
firstintegerObligatorioNumber of repositories to retrieve (1-1000).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Repository FilesSOURCEGRAPH_LIST_REPOSITORY_FILESAcciónTool to list all files and directories in a repository path. use when you need to enumerate files in a repository without cloning.
SOURCEGRAPH_LIST_REPOSITORY_FILESAcciónTool to list all files and directories in a repository path. use when you need to enumerate files in a repository without cloning.
Parámetros de entrada
revstringGit ref (branch, tag, or commit SHA). Defaults to HEAD.
pathstringPath within the repository. Defaults to root ('').
recursivebooleanWhether to list files recursively. Defaults to True.
repo_namestringObligatorioFull repository name, e.g., 'github.com/owner/repo'
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List repository languagesSOURCEGRAPH_LIST_REPOSITORY_LANGUAGESAcciónTool to list languages used in a repository. use when you need to determine the primary and all languages of a given repository; call after you have the repository name.
SOURCEGRAPH_LIST_REPOSITORY_LANGUAGESAcciónTool to list languages used in a repository. use when you need to determine the primary and all languages of a given repository; call after you have the repository name.
Parámetros de entrada
repoNamestringObligatorioFull name of the repository (e.g., 'github.com/gorilla/mux').
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not