From becc06b93ea52f38520b0d20ed7d71cf13e3594e Mon Sep 17 00:00:00 2001 From: rldyourmnd Date: Sun, 13 Sep 2026 17:21:52 +0500 Subject: [PATCH] fix(schema): allow dot-prefixed repository names --- schemas/v1/device.schema.json | 2 +- tests/fixtures/schemas/v1/valid-device.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/schemas/v1/device.schema.json b/schemas/v1/device.schema.json index 1426ef6..3d3fc0b 100644 --- a/schemas/v1/device.schema.json +++ b/schemas/v1/device.schema.json @@ -182,7 +182,7 @@ "provider": { "description": "Provider slug, `owner/name`.", "type": "string", - "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$" + "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9._-]+$" }, "workspace_root": { "description": "Key of the `workspace_roots` entry this checkout sits under. Absent for an out-of-estate checkout, which by ADR 0025 has no declared root.", diff --git a/tests/fixtures/schemas/v1/valid-device.yaml b/tests/fixtures/schemas/v1/valid-device.yaml index 40353d1..bd81826 100644 --- a/tests/fixtures/schemas/v1/valid-device.yaml +++ b/tests/fixtures/schemas/v1/valid-device.yaml @@ -23,3 +23,9 @@ harnesses: state: path: "${XDG_STATE_HOME}/github-device-sync" + +repositories: + - provider: "example-organization/.github" + workspace_root: "organization" + path: "organization/.github" + materialization: "checkout"