Skip to main content

Module git_sync_api

Module git_sync_api 

Source

Enums§

AssignGhesInstallationError
struct for typed errors of method assign_ghes_installation
DeleteFromWorkspaceError
struct for typed errors of method delete_from_workspace
DiscoverGhesInstallationsError
struct for typed errors of method discover_ghes_installations
ExportInstallationError
struct for typed errors of method export_installation
GetCredentialOriginError
struct for typed errors of method get_credential_origin
GetGhesConfigError
struct for typed errors of method get_ghes_config
GetGlobalConnectedRepositoriesError
struct for typed errors of method get_global_connected_repositories
GhesInstallationCallbackError
struct for typed errors of method ghes_installation_callback
ImportInstallationError
struct for typed errors of method import_installation
InstallFromWorkspaceError
struct for typed errors of method install_from_workspace
ListGitlabProjectsError
struct for typed errors of method list_gitlab_projects
SetGitCredentialError
struct for typed errors of method set_git_credential
UnassignGhesInstallationError
struct for typed errors of method unassign_ghes_installation

Functions§

assign_ghes_installation
Assigns a discovered GHES App installation to a workspace. The resulting installation is marked as admin-provisioned, so workspace admins cannot remove it. Super-admin only.
delete_from_workspace
Removes a GitHub installation from the specified workspace. Requires admin privileges.
discover_ghes_installations
Lists every installation the configured self-managed GitHub App can see, annotated with the workspaces in this Windmill instance the installation is currently assigned to. Super-admin only.
export_installation
Exports the JWT token for a specific GitHub installation in the workspace
get_credential_origin
Whether Windmill holds this repository’s access token, and which host it talks to. held means this workspace stores it, borrowed means an ancestor does and it is not this workspace’s to replace. Both absent means the repository authenticates with whatever its URL carries. Returns no secret. Requires workspace admin.
get_ghes_config
Returns the GitHub Enterprise Server app configuration (without private key) for constructing the installation URL
get_global_connected_repositories
ghes_installation_callback
Register a self-managed GitHub App installation from GitHub Enterprise Server
import_installation
Imports a GitHub installation from a JWT token exported from another instance
install_from_workspace
list_gitlab_projects
Lists the projects the supplied GitLab token can push to, so a git repository resource can be filled in without hand-writing a project path. The token is used for this call only and is never stored. Requires workspace admin.
set_git_credential
Stores the access token a git repository authenticates with, so it does not have to be written into the repository URL or a workspace variable. The token is write-only: it is served only to a git-sync job that presents its own job token, and a fork of this workspace reads this copy instead of holding one of its own. Requires workspace admin.
unassign_ghes_installation
Removes an installation (admin-provisioned or otherwise) from a workspace. Super-admin only. Does not affect the installation on the GitHub side.