From ff834e594e7e593421c0fbbb10674822d32a4058 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 18 Jun 2026 10:30:52 +0000 Subject: [PATCH] feat(API): add name field to repo sync schema and create endpoint --- doc/compiled.json | 18 ++++++++++++++++-- paths/repo_syncs/create.yaml | 7 +++++++ schemas/repo_sync.yaml | 9 +++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 6de47760..cc270e10 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -4656,6 +4656,12 @@ "id": { "type": "string" }, + "name": { + "type": "string", + "nullable": true, + "maxLength": 100, + "description": "Optional custom display name for this repo sync. When null or blank, the sync is displayed using the associated project name.\n" + }, "project": { "$ref": "#/components/schemas/project_short" }, @@ -4682,11 +4688,13 @@ }, "last_import_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, "last_export_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true } }, "example": { @@ -24862,6 +24870,12 @@ "type": "string", "example": "abcd1234abcd1234abcd1234abcd1234" }, + "name": { + "description": "Optional custom display name for this repo sync. Defaults to null; when null the project name is used as the display name.\n", + "type": "string", + "nullable": true, + "maxLength": 100 + }, "git_provider": { "description": "The Git provider to use.", "default": "github", diff --git a/paths/repo_syncs/create.yaml b/paths/repo_syncs/create.yaml index a5a63b97..61d99b28 100644 --- a/paths/repo_syncs/create.yaml +++ b/paths/repo_syncs/create.yaml @@ -71,6 +71,13 @@ requestBody: description: ID of the project to connect the Repo Sync to. type: string example: abcd1234abcd1234abcd1234abcd1234 + name: + description: > + Optional custom display name for this repo sync. Defaults to + null; when null the project name is used as the display name. + type: string + nullable: true + maxLength: 100 git_provider: description: The Git provider to use. default: github diff --git a/schemas/repo_sync.yaml b/schemas/repo_sync.yaml index 56f112da..1ae7ea94 100644 --- a/schemas/repo_sync.yaml +++ b/schemas/repo_sync.yaml @@ -5,6 +5,13 @@ repo_sync: properties: id: type: string + name: + type: string + nullable: true + maxLength: 100 + description: > + Optional custom display name for this repo sync. When null or blank, + the sync is displayed using the associated project name. project: "$ref": "./project_short.yaml#/project_short" provider: @@ -26,9 +33,11 @@ repo_sync: last_import_at: type: string format: date-time + nullable: true last_export_at: type: string format: date-time + nullable: true example: id: abcd1234cdef1234abcd1234cdef1234 project: