From 69b8f26c5d21962b25a8933ebcf0af676a7e7c57 Mon Sep 17 00:00:00 2001 From: Raffael Date: Wed, 11 Oct 2023 11:15:16 +0200 Subject: [PATCH] #211 add two new config attributes "archived" and "unmanaged" to repository config --- api/generated_apimodel.go | 4 ++++ api/openapi-v3-spec.json | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/api/generated_apimodel.go b/api/generated_apimodel.go index 939b708..1aaf7cc 100644 --- a/api/generated_apimodel.go +++ b/api/generated_apimodel.go @@ -146,6 +146,10 @@ type RepositoryConfigurationDto struct { DefaultReviewers []string `yaml:"defaultReviewers,omitempty" json:"defaultReviewers,omitempty"` // List of users, who can sign a pull request. SignedApprovers []string `yaml:"signedApprovers,omitempty" json:"signedApprovers,omitempty"` + // Moves the repository into the archive. + Archived *bool `yaml:"archived,omitempty" json:"archived,omitempty"` + // Repository will not be configured, also not archived. + Unmanaged *bool `yaml:"unmanaged,omitempty" json:"unmanaged,omitempty"` } type RepositoryConfigurationWebhookDto struct { diff --git a/api/openapi-v3-spec.json b/api/openapi-v3-spec.json index d1a1e61..b1953fb 100644 --- a/api/openapi-v3-spec.json +++ b/api/openapi-v3-spec.json @@ -2786,6 +2786,14 @@ "items": { "type": "string" } + }, + "archived": { + "type": "boolean", + "description": "Moves the repository into the archive." + }, + "unmanaged": { + "type": "boolean", + "description": "Repository will not be configured, also not archived." } } },