API

Get Git status

Check the configured Git repository state for Watch script sync.

GET/git/status

Use this endpoint to inspect the Git repository Watch uses for rule scripts. It is only meaningful when WATCH_SCRIPT_GIT_REPO is configured in your Watch configuration.

Request

This endpoint has no path, query, or body parameters.

Response

configuredboolean

Whether a Git repository is configured for Watch script sync.

repo_urlstring

Git repository URL from WATCH_SCRIPT_GIT_REPO.

branchstring

Branch name Watch tracks. Defaults to main when not set.

local_pathstring

Local directory where Watch stores cloned scripts.

current_commitstring

Current local commit hash.

remote_commitstring

Latest commit hash on the remote branch, when available.

up_to_dateboolean

Whether the local and remote commits match.

errorstring

Error message when Git is not configured or status lookup fails.