NAiOS IconNAiOS Logo
Volver al catálogo

Sourcegraph

sourcegraph

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.

Acciones
8
Triggers
0
Autenticación
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Tool 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

  • dataobjectObligatorio

    GraphQL response data containing site settings edit permission flag.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Compare CommitsSOURCEGRAPH_COMPARE_COMMITSAcción

Tool 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

  • basestringObligatorio

    Base commit SHA or ref to compare from

  • headstringObligatorio

    Head commit SHA or ref to compare to

  • repostringObligatorio

    Repository name in format 'github.com/owner/repo'

Parámetros de salida

  • dataobjectObligatorio

    GraphQL response data

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Commit DetailsSOURCEGRAPH_GET_COMMIT_DETAILSAcción

Get detailed information about a specific commit in a repository.

Parámetros de entrada

  • revstringObligatorio

    Commit SHA, branch name, or tag to get details for

  • repostringObligatorio

    Repository name in format 'github.com/owner/repo'

Parámetros de salida

  • dataobjectObligatorio

    GraphQL response data

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Current UserSOURCEGRAPH_GET_CURRENT_USERAcción

Tool 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

  • dataobjectObligatorio

    GraphQL response data containing the current user.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get File ContentsSOURCEGRAPH_GET_FILE_CONTENTSAcción

Tool 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_pathstringObligatorio

    Path to the file in the repository, relative to the root, e.g., 'README.md'.

  • repo_namestringObligatorio

    Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List RepositoriesSOURCEGRAPH_LIST_REPOSITORIESAcción

Tool to list repositories on the sourcegraph instance. use when you need to paginate through all available repositories.

Parámetros de entrada

  • afterstring

    Pagination cursor returned from previous page; omit for first page.

  • firstintegerObligatorio

    Number of repositories to retrieve (1-1000).

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Repository FilesSOURCEGRAPH_LIST_REPOSITORY_FILESAcción

Tool 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

  • revstring

    Git ref (branch, tag, or commit SHA). Defaults to HEAD.

  • pathstring

    Path within the repository. Defaults to root ('').

  • recursiveboolean

    Whether to list files recursively. Defaults to True.

  • repo_namestringObligatorio

    Full repository name, e.g., 'github.com/owner/repo'

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List repository languagesSOURCEGRAPH_LIST_REPOSITORY_LANGUAGESAcción

Tool 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

  • repoNamestringObligatorio

    Full name of the repository (e.g., 'github.com/gorilla/mux').

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not