Merge pull request #328 from aakhter/repo-status-panel

Report repository status for git-clone installs (GET /api/system/repo-status)
This commit is contained in:
Ark0N
2026-08-21 02:10:38 +02:00
committed by GitHub
4 changed files with 511 additions and 0 deletions
+6
View File
@@ -48,6 +48,7 @@ import {
} from '../route-helpers.js';
import { SseEvent } from '../sse-events.js';
import { getInstallInfo, checkForUpdate, startUpdate, getUpdateStatusForApi } from '../self-update.js';
import { getRepositoryStatus } from '../repo-status.js';
import type { SessionPort, EventPort, ConfigPort, InfraPort, AuthPort } from '../ports/index.js';
import { AUTH_COOKIE_NAME } from '../middleware/auth.js';
import { QR_AUTH_FAILURE_MAX } from '../../config/tunnel-config.js';
@@ -354,6 +355,11 @@ export function registerSystemRoutes(
// Poll target for update progress — survives the restart the update triggers.
app.get('/api/system/update/status', async () => getUpdateStatusForApi());
// Informational companion to the release-tag updater above: what this CHECKOUT
// looks like against its own remotes (ahead/behind, incoming commits), which a
// release tag cannot answer for a git install tracking a branch.
app.get('/api/system/repo-status', async () => getRepositoryStatus());
// Kick off a detached update to the latest release. Returns immediately; the
// browser then polls /api/system/update/status across the service restart.
app.post('/api/system/update', async (_req, reply) => {