From 7508fb446c261499cc00b4c150d62e0ac0365bb8 Mon Sep 17 00:00:00 2001 From: Patrick Stevens <3138005+Smaug123@users.noreply.github.com> Date: Sun, 22 Sep 2024 13:45:37 +0100 Subject: [PATCH] Format JSON file (#93) --- Gitea.Declarative.Test/GiteaConfig.json | 204 +++++++++++++----------- 1 file changed, 109 insertions(+), 95 deletions(-) diff --git a/Gitea.Declarative.Test/GiteaConfig.json b/Gitea.Declarative.Test/GiteaConfig.json index f58b275..8a18c66 100644 --- a/Gitea.Declarative.Test/GiteaConfig.json +++ b/Gitea.Declarative.Test/GiteaConfig.json @@ -1,95 +1,109 @@ -{ - "users": { - "admin": { - "isAdmin": true, - "email": "some-admin-email@example.com", - "visibility": "private" - }, - "nonadmin-user": { - "isAdmin": false, - "email": "some-nonadmin-email@example.com", - "website": "https://example.com", - "visibility": "public" - } - }, - "repos": { - "nonadmin-user": { - "synced-from-github-repo-1": { - "description": "A repo that is imported from GitHub", - "gitHub": { - "uri": "https://github.com/MyName/repo-name" - } - }, - "synced-from-github-repo-2": { - "description": "Another repo that is imported from GitHub", - "gitHub": { - "uri": "https://github.com/MyName/repo-name-2" - } - }, - "new-repo": { - "description": "A repo that's created directly on this Gitea", - "native": { - "defaultBranch": "main", - "private": false - } - }, - "new-repo-mirrored": { - "description": "A repo that's created directly on this Gitea and mirrored to GitHub", - "native": { - "defaultBranch": "main", - "private": false, - "mirror": { - "gitHubAddress": "https://github.com/MyName/repo-name-3" - } - } - }, - "new-repo-mirrored-with-branches": { - "description": "A repo that's created directly on this Gitea and mirrored to GitHub", - "native": { - "defaultBranch": "main", - "private": false, - "mirror": { - "gitHubAddress": "https://github.com/MyName/repo-name-3" - }, - "protectedBranches": [ - { "branchName": "main" } - ] - } - }, - "new-repo-mirrored-with-branches-and-protection": { - "description": "A repo that's created directly on this Gitea and mirrored to GitHub", - "native": { - "defaultBranch": "main", - "private": false, - "mirror": { - "gitHubAddress": "https://github.com/MyName/repo-name-3" - }, - "protectedBranches": [ - { "branchName": "main", "blockOnOutdatedBranch": true, "requiredStatusChecks": ["all-pr-checks-complete"] } - ] - } - }, - "deleted-repo": { - "description": "A repo that's been scheduled for deletion at the next run", - "deleted": true, - "native": { - "defaultBranch": "main", - "private": false, - "mirror": { - "gitHubAddress": "https://github.com/MyName/repo-name-3" - }, - "protectedBranches": [ - { "branchName": "main", "blockOnOutdatedBranch": true, "requiredStatusChecks": ["all-pr-checks-complete"] } - ] - } - }, - "deleted-mirror": { - "description": "A repo that's been scheduled for deletion at the next run", - "deleted": true, - "gitHub": { - "uri": "https://github.com/MyName/only-remaining-copy" - } - } - } - } -} +{ + "users": { + "admin": { + "isAdmin": true, + "email": "some-admin-email@example.com", + "visibility": "private" + }, + "nonadmin-user": { + "isAdmin": false, + "email": "some-nonadmin-email@example.com", + "website": "https://example.com", + "visibility": "public" + } + }, + "repos": { + "nonadmin-user": { + "synced-from-github-repo-1": { + "description": "A repo that is imported from GitHub", + "gitHub": { + "uri": "https://github.com/MyName/repo-name" + } + }, + "synced-from-github-repo-2": { + "description": "Another repo that is imported from GitHub", + "gitHub": { + "uri": "https://github.com/MyName/repo-name-2" + } + }, + "new-repo": { + "description": "A repo that's created directly on this Gitea", + "native": { + "defaultBranch": "main", + "private": false + } + }, + "new-repo-mirrored": { + "description": "A repo that's created directly on this Gitea and mirrored to GitHub", + "native": { + "defaultBranch": "main", + "private": false, + "mirror": { + "gitHubAddress": "https://github.com/MyName/repo-name-3" + } + } + }, + "new-repo-mirrored-with-branches": { + "description": "A repo that's created directly on this Gitea and mirrored to GitHub", + "native": { + "defaultBranch": "main", + "private": false, + "mirror": { + "gitHubAddress": "https://github.com/MyName/repo-name-3" + }, + "protectedBranches": [ + { + "branchName": "main" + } + ] + } + }, + "new-repo-mirrored-with-branches-and-protection": { + "description": "A repo that's created directly on this Gitea and mirrored to GitHub", + "native": { + "defaultBranch": "main", + "private": false, + "mirror": { + "gitHubAddress": "https://github.com/MyName/repo-name-3" + }, + "protectedBranches": [ + { + "branchName": "main", + "blockOnOutdatedBranch": true, + "requiredStatusChecks": [ + "all-pr-checks-complete" + ] + } + ] + } + }, + "deleted-repo": { + "description": "A repo that's been scheduled for deletion at the next run", + "deleted": true, + "native": { + "defaultBranch": "main", + "private": false, + "mirror": { + "gitHubAddress": "https://github.com/MyName/repo-name-3" + }, + "protectedBranches": [ + { + "branchName": "main", + "blockOnOutdatedBranch": true, + "requiredStatusChecks": [ + "all-pr-checks-complete" + ] + } + ] + } + }, + "deleted-mirror": { + "description": "A repo that's been scheduled for deletion at the next run", + "deleted": true, + "gitHub": { + "uri": "https://github.com/MyName/only-remaining-copy" + } + } + } + } +}