mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-05 07:28:40 +00:00
Add SVG demos (#61)
This commit is contained in:
3
.github/workflows/dotnet.yaml
vendored
3
.github/workflows/dotnet.yaml
vendored
@@ -88,7 +88,8 @@ jobs:
|
||||
extra_nix_config: |
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run link checker
|
||||
run: nix develop --command markdown-link-check README.md
|
||||
# Sadly we're in Bash
|
||||
run: 'nix develop --command markdown-link-check {,**/}*.md'
|
||||
|
||||
all-required-checks-complete:
|
||||
needs: [check-dotnet-format, check-nix-format, build, build-nix, linkcheck]
|
||||
|
26
.gitignore
vendored
26
.gitignore
vendored
@@ -1,11 +1,15 @@
|
||||
bin/
|
||||
obj/
|
||||
/packages/
|
||||
riderModule.iml
|
||||
/_ReSharper.Caches/
|
||||
.idea/
|
||||
*.user
|
||||
*.DotSettings
|
||||
.DS_Store
|
||||
result
|
||||
.profile*
|
||||
bin/
|
||||
obj/
|
||||
/packages/
|
||||
riderModule.iml
|
||||
/_ReSharper.Caches/
|
||||
.idea/
|
||||
*.user
|
||||
*.DotSettings
|
||||
.DS_Store
|
||||
result
|
||||
.profile*
|
||||
|
||||
node_modules/
|
||||
package.json
|
||||
package-lock.json
|
||||
|
@@ -23,6 +23,10 @@ The main argument you provide is a JSON configuration file, which should conform
|
||||
* With Nix: `nix run github:Smaug123/dotnet-gitea-declarative -- --help`.
|
||||
* From source: clone the repository, and `dotnet run`.
|
||||
|
||||
# Demos
|
||||
|
||||
See the [Demos file](./docs/demos.md).
|
||||
|
||||
# Development
|
||||
|
||||
To upgrade the NuGet dependencies in the flake, run `nix build .#fetchDeps` and copy the resulting file into `nix/deps.nix`.
|
||||
|
10
docs/after-deletion.cast
Normal file
10
docs/after-deletion.cast
Normal file
@@ -0,0 +1,10 @@
|
||||
{"version": 2, "width": 100, "height": 73, "timestamp": 1691357171, "env": {"GITEA_TOKEN": "7a7ff894cba094122cdf4be6ceb60752317ce698", "SHELL": "/bin/zsh", "TERM": "tmux-256color"}}
|
||||
[0.041174, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.096126, "o", "\rquerying info about missing paths\u001b[0m\u001b[K"]
|
||||
[0.170815, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.17126, "o", "\r\u001b[K"]
|
||||
[0.365115, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking users...\r\n"]
|
||||
[0.521684, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking repos...\r\n"]
|
||||
[0.936521, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n The repo patrick:another-repo is configured as Deleted, and is absent from the server. Remove this repo from configuration.\r\n"]
|
||||
[0.950991, "o", ">"]
|
||||
[1.961202, "o", " "]
|
1
docs/after-deletion.svg
Normal file
1
docs/after-deletion.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="434.2"><rect width="1000" height="434.2" rx="0" ry="0" class="a"/><svg height="434.2" viewBox="0 0 100 43.42" width="1000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style>@keyframes g{0%{transform:translateX(0)}2.1%{transform:translateX(-100px)}4.9%{transform:translateX(-200px)}8.7%{transform:translateX(-400px)}18.6%{transform:translateX(-500px)}26.6%{transform:translateX(-600px)}47.8%{transform:translateX(-700px)}48.5%{transform:translateX(-800px)}to{transform:translateX(-900px)}}.a{fill:#282d35}.d{fill:#b9c0cb;white-space:pre}</style><g font-family="Monaco,Consolas,Menlo,'Bitstream Vera Sans Mono','Powerline Symbols',monospace" font-size="1.67"><defs><symbol id="1">0<text y="1.67" style="white-space:pre" fill="#a8cc8c">info</text><text x="4.008" y="1.67" class="d">:</text><text x="6.012" y="1.67" class="d">Gitea.Declarative[0]</text></symbol><symbol id="2"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">users...</text></symbol><symbol id="3"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">repos...</text></symbol><symbol id="4"><text x="6.012" y="1.67" class="d">The</text><text x="10.02" y="1.67" class="d">repo</text><text x="15.03" y="1.67" class="d">patrick:another-repo</text><text x="36.072" y="1.67" class="d">is</text><text x="39.078" y="1.67" class="d">configured</text><text x="50.1" y="1.67" class="d">as</text><text x="53.106" y="1.67" class="d">Deleted,</text><text x="62.124" y="1.67" class="d">and</text><text x="66.132" y="1.67" class="d">is</text><text x="69.138" y="1.67" class="d">absent</text><text x="76.152" y="1.67" class="d">from</text><text x="81.162" y="1.67" class="d">the</text><text x="85.17" y="1.67" class="d">server.</text><text x="93.186" y="1.67" class="d">Remove</text></symbol><symbol id="5"><text y="1.67" class="d">this</text><text x="5.01" y="1.67" class="d">repo</text><text x="10.02" y="1.67" class="d">from</text><text x="15.03" y="1.67" class="d">configuration.</text></symbol><symbol id="6"><text y="1.67" class="d">></text></symbol><symbol id="a"><path fill="transparent" d="M0 0h100v21H0z"/></symbol><symbol id="b"><path fill="#6f7683" d="M0 0h1.102v2.171H0z"/></symbol></defs><path class="a" d="M0 0h100v43.42H0z"/><g style="animation-duration:1.9612020000000001s;animation-iteration-count:infinite;animation-name:g;animation-timing-function:steps(1,end)"><svg width="1000"><svg><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="100"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="200"><use xlink:href="#a"/><use xlink:href="#b" x="32.996"/><text y="1.67" class="d">querying</text><text x="9.018" y="1.67" class="d">info</text><text x="14.028" y="1.67" class="d">about</text><text x="20.04" y="1.67" class="d">missing</text><text x="28.056" y="1.67" class="d">paths</text></svg><svg x="300"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="400"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="500"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="4.317"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/></svg><svg x="600"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="8.659"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/></svg><svg x="700"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="15.172"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#1" y="8.684"/><use xlink:href="#4" y="10.855"/><use xlink:href="#5" y="13.026"/></svg><svg x="800"><use xlink:href="#a"/><use xlink:href="#b" x=".996" y="15.172"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#1" y="8.684"/><use xlink:href="#4" y="10.855"/><use xlink:href="#5" y="13.026"/><use xlink:href="#6" y="15.197"/></svg><svg x="900"><use xlink:href="#a"/><use xlink:href="#b" x="1.996" y="15.172"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#1" y="8.684"/><use xlink:href="#4" y="10.855"/><use xlink:href="#5" y="13.026"/><use xlink:href="#6" y="15.197"/></svg></svg></g></g></svg></svg>
|
After Width: | Height: | Size: 4.4 KiB |
10
docs/deletion.cast
Normal file
10
docs/deletion.cast
Normal file
@@ -0,0 +1,10 @@
|
||||
{"version": 2, "width": 100, "height": 73, "timestamp": 1691357482, "env": {"GITEA_TOKEN": "7a7ff894cba094122cdf4be6ceb60752317ce698", "SHELL": "/bin/zsh", "TERM": "tmux-256color"}}
|
||||
[0.041748, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.096714, "o", "\rquerying info about missing paths\u001b[0m\u001b[K"]
|
||||
[0.176345, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.176776, "o", "\r\u001b[K"]
|
||||
[0.375076, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking users...\r\n"]
|
||||
[0.554092, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking repos...\r\n"]
|
||||
[1.034573, "o", "\u001b[40m\u001b[1m\u001b[33mwarn\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Deleting repo patrick:another-repo\r\n"]
|
||||
[1.144465, "o", ">"]
|
||||
[2.154421, "o", "\\n> \r\n"]
|
1
docs/deletion.svg
Normal file
1
docs/deletion.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="434.2"><rect width="1000" height="434.2" rx="0" ry="0" class="a"/><svg height="434.2" viewBox="0 0 100 43.42" width="1000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style>@keyframes h{0%{transform:translateX(0)}1.9%{transform:translateX(-100px)}4.5%{transform:translateX(-200px)}8.2%{transform:translateX(-400px)}17.4%{transform:translateX(-500px)}25.7%{transform:translateX(-600px)}48%{transform:translateX(-700px)}53.1%{transform:translateX(-800px)}to{transform:translateX(-900px)}}.a{fill:#282d35}.d{fill:#b9c0cb;white-space:pre}</style><g font-family="Monaco,Consolas,Menlo,'Bitstream Vera Sans Mono','Powerline Symbols',monospace" font-size="1.67"><defs><symbol id="1">0<text y="1.67" style="white-space:pre" fill="#a8cc8c">info</text><text x="4.008" y="1.67" class="d">:</text><text x="6.012" y="1.67" class="d">Gitea.Declarative[0]</text></symbol><symbol id="2"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">users...</text></symbol><symbol id="3"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">repos...</text></symbol><symbol id="4">0<text y="1.67" style="white-space:pre" fill="#dbab79" font-weight="700">warn</text><text x="4.008" y="1.67" class="d">:</text><text x="6.012" y="1.67" class="d">Gitea.Declarative[0]</text></symbol><symbol id="5"><text x="6.012" y="1.67" class="d">Deleting</text><text x="15.03" y="1.67" class="d">repo</text><text x="20.04" y="1.67" class="d">patrick:another-repo</text></symbol><symbol id="a"><path fill="transparent" d="M0 0h100v21H0z"/></symbol><symbol id="b"><path fill="#6f7683" d="M0 0h1.102v2.171H0z"/></symbol></defs><path class="a" d="M0 0h100v43.42H0z"/><g style="animation-duration:2.154421s;animation-iteration-count:infinite;animation-name:h;animation-timing-function:steps(1,end)"><svg width="1000"><svg><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="100"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="200"><use xlink:href="#a"/><use xlink:href="#b" x="32.996"/><text y="1.67" class="d">querying</text><text x="9.018" y="1.67" class="d">info</text><text x="14.028" y="1.67" class="d">about</text><text x="20.04" y="1.67" class="d">missing</text><text x="28.056" y="1.67" class="d">paths</text></svg><svg x="300"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="400"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="500"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="4.317"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/></svg><svg x="600"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="8.659"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/></svg><svg x="700"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="13.001"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#4" y="8.684"/><use xlink:href="#5" y="10.855"/></svg><svg x="800"><use xlink:href="#a"/><use xlink:href="#b" x=".996" y="13.001"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#4" y="8.684"/><use xlink:href="#5" y="10.855"/><text y="14.696" class="d">></text></svg><svg x="900"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="15.172"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><use xlink:href="#4" y="8.684"/><use xlink:href="#5" y="10.855"/><text y="14.696" class="d">>\n></text></svg></svg></g></g></svg></svg>
|
After Width: | Height: | Size: 3.7 KiB |
24
docs/demos.md
Normal file
24
docs/demos.md
Normal file
@@ -0,0 +1,24 @@
|
||||
Demos taken with [asciinema](https://asciinema.org/).
|
||||
(Yes, I have revoked the access token I used when recording these.)
|
||||
|
||||
# No-op
|
||||
|
||||
A no-op, where the configuration is already in sync with the remote Gitea instance ([raw cast](./no-op.cast)):
|
||||

|
||||
|
||||
|
||||
# Repo creation
|
||||
|
||||
Create a repo by adding an appropriate entry in config ([raw cast](./on-creation.cast)):
|
||||

|
||||
|
||||
# Repo update
|
||||
|
||||
Make a change to that repo by editing some of its fields in the config file ([raw cast](./update.cast)):
|
||||

|
||||
|
||||
# Repo deletion
|
||||
|
||||
Delete the repo by setting its `"deleted"` field to `true` ([raw cast](./deletion.cast)):
|
||||

|
||||
|
9
docs/no-op.cast
Normal file
9
docs/no-op.cast
Normal file
@@ -0,0 +1,9 @@
|
||||
{"version": 2, "width": 100, "height": 73, "timestamp": 1691357734, "env": {"GITEA_TOKEN": "7a7ff894cba094122cdf4be6ceb60752317ce698", "SHELL": "/bin/zsh", "TERM": "tmux-256color"}}
|
||||
[0.040535, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.095502, "o", "\rquerying info about missing paths\u001b[0m\u001b[K"]
|
||||
[0.177866, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.178388, "o", "\r\u001b[K"]
|
||||
[0.37957, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking users...\r\n"]
|
||||
[0.537321, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking repos...\r\n"]
|
||||
[0.985487, "o", ">"]
|
||||
[1.995494, "o", "\\n> \r\n"]
|
1
docs/no-op.svg
Normal file
1
docs/no-op.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="434.2"><rect width="1000" height="434.2" rx="0" ry="0" class="a"/><svg height="434.2" viewBox="0 0 100 43.42" width="1000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style>@keyframes g{0%{transform:translateX(0)}2%{transform:translateX(-100px)}4.8%{transform:translateX(-200px)}8.9%{transform:translateX(-400px)}19%{transform:translateX(-500px)}26.9%{transform:translateX(-600px)}49.4%{transform:translateX(-700px)}to{transform:translateX(-800px)}}.a{fill:#282d35}.d{fill:#b9c0cb;white-space:pre}</style><g font-family="Monaco,Consolas,Menlo,'Bitstream Vera Sans Mono','Powerline Symbols',monospace" font-size="1.67"><defs><symbol id="1">0<text y="1.67" style="white-space:pre" fill="#a8cc8c">info</text><text x="4.008" y="1.67" class="d">:</text><text x="6.012" y="1.67" class="d">Gitea.Declarative[0]</text></symbol><symbol id="2"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">users...</text></symbol><symbol id="3"><text x="6.012" y="1.67" class="d">Checking</text><text x="15.03" y="1.67" class="d">repos...</text></symbol><symbol id="a"><path fill="transparent" d="M0 0h100v21H0z"/></symbol><symbol id="b"><path fill="#6f7683" d="M0 0h1.102v2.171H0z"/></symbol></defs><path class="a" d="M0 0h100v43.42H0z"/><g style="animation-duration:1.995494s;animation-iteration-count:infinite;animation-name:g;animation-timing-function:steps(1,end)"><svg width="900"><svg><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="100"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="200"><use xlink:href="#a"/><use xlink:href="#b" x="32.996"/><text y="1.67" class="d">querying</text><text x="9.018" y="1.67" class="d">info</text><text x="14.028" y="1.67" class="d">about</text><text x="20.04" y="1.67" class="d">missing</text><text x="28.056" y="1.67" class="d">paths</text></svg><svg x="300"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="400"><use xlink:href="#a"/><use xlink:href="#b" x="-.004"/></svg><svg x="500"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="4.317"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/></svg><svg x="600"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="8.659"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/></svg><svg x="700"><use xlink:href="#a"/><use xlink:href="#b" x=".996" y="8.659"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><text y="10.354" class="d">></text></svg><svg x="800"><use xlink:href="#a"/><use xlink:href="#b" x="-.004" y="10.83"/><use xlink:href="#1"/><use xlink:href="#2" y="2.171"/><use xlink:href="#1" y="4.342"/><use xlink:href="#3" y="6.513"/><text y="10.354" class="d">>\n></text></svg></svg></g></g></svg></svg>
|
After Width: | Height: | Size: 2.9 KiB |
23
docs/on-creation.cast
Normal file
23
docs/on-creation.cast
Normal file
@@ -0,0 +1,23 @@
|
||||
{"version": 2, "width": 100, "height": 73, "timestamp": 1691357526, "env": {"GITEA_TOKEN": "7a7ff894cba094122cdf4be6ceb60752317ce698", "SHELL": "/bin/zsh", "TERM": "tmux-256color"}}
|
||||
[0.041147, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.096129, "o", "\rquerying info about missing paths\u001b[0m\u001b[K"]
|
||||
[0.177263, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.177779, "o", "\r\u001b[K"]
|
||||
[0.375834, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking users...\r\n"]
|
||||
[0.533253, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking repos...\r\n"]
|
||||
[0.885185, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Creating patrick:another-repo\r\n"]
|
||||
[0.965522, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Created repo patrick: another-repo\r\n"]
|
||||
[1.09698, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set AllowRebase property\r\n"]
|
||||
[1.100115, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set HasProjects property\r\n"]
|
||||
[1.100905, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set HasWiki property\r\n"]
|
||||
[1.102465, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set AllowMergeCommits property\r\n"]
|
||||
[1.103235, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set AllowRebaseExplicit property\r\n"]
|
||||
[1.103987, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set AllowRebase property\r\n"]
|
||||
[1.104744, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set AllowRebaseUpdate property\r\n"]
|
||||
[1.106875, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set DefaultMergeStyle property\r\n"]
|
||||
[1.107589, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set IgnoreWhitespaceConflicts property\r\n"]
|
||||
[1.108274, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set DeleteBranchAfterMerge property\r\n"]
|
||||
[1.109194, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Editing repo patrick:another-repo\r\n"]
|
||||
[1.158592, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Creating branch protection rule main on patrick:another-repo\r\n"]
|
||||
[1.204468, "o", ">"]
|
||||
[2.213461, "o", "\\n> \r\n"]
|
1
docs/on-creation.svg
Normal file
1
docs/on-creation.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 19 KiB |
16
docs/record-command.sh
Normal file
16
docs/record-command.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/zsh
|
||||
|
||||
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 -- \
|
||||
--config-file /tmp/GiteaConfig.json \
|
||||
--gitea-host=https://gitea.patrickstevens.co.uk \
|
||||
--gitea-admin-api-token "$GITEA_TOKEN" \
|
||||
; echo -n ">" && sleep 1 && echo "\n> "' "$target.cast"
|
||||
|
||||
cat "$target.cast" | ../node_modules/.bin/svg-term > "$target.svg"
|
||||
}
|
||||
|
||||
execute "no-op"
|
13
docs/update.cast
Normal file
13
docs/update.cast
Normal file
@@ -0,0 +1,13 @@
|
||||
{"version": 2, "width": 100, "height": 73, "timestamp": 1691357568, "env": {"GITEA_TOKEN": "7a7ff894cba094122cdf4be6ceb60752317ce698", "SHELL": "/bin/zsh", "TERM": "tmux-256color"}}
|
||||
[0.041139, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.096085, "o", "\rquerying info about missing paths\u001b[0m\u001b[K"]
|
||||
[0.171285, "o", "\r\u001b[0m\u001b[K"]
|
||||
[0.171953, "o", "\r\u001b[K"]
|
||||
[0.369871, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking users...\r\n"]
|
||||
[0.553806, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Checking repos...\r\n"]
|
||||
[1.043268, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set Description property\r\n"]
|
||||
[1.044268, "o", "\u001b[40m\u001b[37mdbug\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n On patrick:another-repo, will set Private property\r\n"]
|
||||
[1.052673, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Editing repo patrick:another-repo\r\n"]
|
||||
[1.103453, "o", "\u001b[40m\u001b[32minfo\u001b[39m\u001b[22m\u001b[49m: Gitea.Declarative[0]\r\n Reconciling branch protection rule main on patrick:another-repo\r\n"]
|
||||
[1.150379, "o", ">"]
|
||||
[2.158873, "o", "\\n> \r\n"]
|
1
docs/update.svg
Normal file
1
docs/update.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.4 KiB |
Reference in New Issue
Block a user