feat: declare workspace repository in installation config

This commit is contained in:
2026-08-14 16:32:58 +02:00
parent 9db4463a83
commit 747020a330
9 changed files with 294 additions and 13 deletions
+4
View File
@@ -11,6 +11,7 @@ import {
GitWorkspaceRepository,
WorkspaceRegistryError,
WorkspaceRepositoryLock,
normalizeRepositoryIdentity,
type GitStatus,
} from "./git-repository.js";
import {
@@ -492,6 +493,9 @@ export class WorkspaceRegistry {
if (!active) throw safeError;
return {
branch: this.config.branch,
...(this.config.remoteUrl
? { repository: normalizeRepositoryIdentity(this.config.remoteUrl) }
: {}),
head: active.head,
ahead: 0,
behind: 0,