diff --git a/Gitea.Declarative.Lib/GiteaConfig.schema.json b/Gitea.Declarative.Lib/GiteaConfig.schema.json index 6fa2bbb..164c795 100644 --- a/Gitea.Declarative.Lib/GiteaConfig.schema.json +++ b/Gitea.Declarative.Lib/GiteaConfig.schema.json @@ -88,7 +88,7 @@ "boolean", "null" ], - "description": "Set this to true to delete the repo. dotnet-gitea-declarative will refuse to delete any repo that is absent from configuration; the workflow is to first set its `deleted` to `true` (whereupon dotnet-gitea-declarative will delete it from Gitea) and then to delete it from configuration." + "description": "Set this to true to delete the repo. We will refuse to delete any repo that is absent from\n configuration; the workflow is to first set its `deleted` to `true` (whereupon we will delete it from Gitea) and then to delete it from configuration." } }, "oneOf": [ diff --git a/Gitea.Declarative.Lib/SerialisedConfigSchema.fs b/Gitea.Declarative.Lib/SerialisedConfigSchema.fs index fab9f23..610e958 100644 --- a/Gitea.Declarative.Lib/SerialisedConfigSchema.fs +++ b/Gitea.Declarative.Lib/SerialisedConfigSchema.fs @@ -117,7 +117,8 @@ type internal SerialisedRepo = [] [] Native : Nullable - [] + [] [] Deleted : Nullable } diff --git a/Gitea.Declarative.Test/GiteaConfig.json b/Gitea.Declarative.Test/GiteaConfig.json index c415105..f58b275 100644 --- a/Gitea.Declarative.Test/GiteaConfig.json +++ b/Gitea.Declarative.Test/GiteaConfig.json @@ -70,7 +70,7 @@ } }, "deleted-repo": { - "description": "A repo that's been scheduled for deletion at the next run of dotnet-gitea-declarative", + "description": "A repo that's been scheduled for deletion at the next run", "deleted": true, "native": { "defaultBranch": "main", @@ -84,7 +84,7 @@ } }, "deleted-mirror": { - "description": "A repo that's been scheduled for deletion at the next run of dotnet-gitea-declarative", + "description": "A repo that's been scheduled for deletion at the next run", "deleted": true, "gitHub": { "uri": "https://github.com/MyName/only-remaining-copy" diff --git a/README.md b/README.md index 13446a7..23c147f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# .NET Declarative Gitea +# gitea-repo-config This is a small project to allow you to specify a [Gitea](https://github.com/go-gitea/) configuration in a declarative manner, and to resolve differences between intended and actual config. @@ -18,11 +18,11 @@ This is a small project to allow you to specify a [Gitea](https://github.com/go- Run with the `--help` argument for a full listing. The main argument you provide is a JSON configuration file, which should conform to [the schema](./Gitea.Declarative.Lib/GiteaConfig.schema.json); there is [an example](./Gitea.Declarative.Test/GiteaConfig.json) in the tests. -(You can call `dotnet-gitea-declarative verify $CONFIG_PATH` to verify against the schema, or `dotnet-gitea-declarative output-schema` to output the schema for local tooling to consume.) +(You can call `gitea-repo-config verify $CONFIG_PATH` to verify against the schema, or `gitea-repo-config output-schema` to output the schema for local tooling to consume.) # How to build and run -* With Nix: `nix run github:Smaug123/dotnet-gitea-declarative -- reconcile --help`. +* With Nix: `nix run github:Smaug123/gitea-repo-config -- reconcile --help`. * From source: clone the repository, and `dotnet run`. # Demos diff --git a/docs/record-command.sh b/docs/record-command.sh index b6ff867..89d6c42 100644 --- a/docs/record-command.sh +++ b/docs/record-command.sh @@ -4,7 +4,7 @@ export GITEA_TOKEN="$1" function execute() { target="$1" - asciinema rec --overwrite --cols 100 --env "GITEA_TOKEN,SHELL,TERM" --command 'nix run github:Smaug123/dotnet-gitea-declarative -- \ + asciinema rec --overwrite --cols 100 --env "GITEA_TOKEN,SHELL,TERM" --command 'nix run github:Smaug123/gitea-repo-config -- \ --config-file /tmp/GiteaConfig.json \ --gitea-host=https://gitea.patrickstevens.co.uk \ --gitea-admin-api-token "$GITEA_TOKEN" \ diff --git a/flake.nix b/flake.nix index ea10378..a559633 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ pkgs = nixpkgs.legacyPackages.${system}; projectFile = "./Gitea.Declarative/Gitea.Declarative.fsproj"; testProjectFile = "./Gitea.Declarative.Test/Gitea.Declarative.Test.fsproj"; - pname = "dotnet-gitea-declarative"; + pname = "gitea-repo-config"; dotnet-sdk = pkgs.dotnet-sdk_7; dotnet-runtime = pkgs.dotnetCorePackages.runtime_7_0; version = "0.1"; @@ -62,7 +62,7 @@ })); default = pkgs.buildDotnetModule { pname = pname; - name = "gitea-declarative"; + name = "gitea-repo-config"; version = version; src = ./.; projectFile = projectFile;