Commit 0a69a8facd

0a69a8facd64e67e42ec04fa11dd4a0304e40d79

parent: a21d67902c

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-12 01:01 UTC

wiki, CHANGELOG: snippets

Closes #195
.gitbay/wiki/Admin.org +1
@@ -114,6 +114,7 @@ default, is right when gitbayd terminates TLS itself.
114114- =clone_timeout= (3600s) — cap on =repo import= fetches.
115115- =max_blob_bytes= (100MB) — cap on raw file serving over the web.
116116- =max_asset_bytes= (512MB) — cap per uploaded release asset.
117- =max_snippet_bytes= (1MB) — cap per snippet file.
117118- =max_repos_per_user= (0, unlimited) — repositories an account may own
118119 directly; =repo create=, =fork= and =import= refuse past it.
119120 Organizations are not capped.
.gitbay/wiki/Parity.org +3
@@ -192,6 +192,9 @@ always markdown.
192192| release delete | yes | yes | yes |
193193| release asset add | yes | no | n/a |
194194| release asset remove | yes | no | yes |
195| snippet create, edit, delete| yes | yes | no |
196| snippet show, list | yes | yes | no |
197| snippet file set, get, remove| yes | yes | no |
195198
196199No row is web-only any more. Blame, file editing, log at a ref,
197200archive, the public listing and the wiki were all in that state — a
.gitbay/wiki/Users.org +26
@@ -601,6 +601,32 @@ instance issues its own certificates). Claims are exclusive per
601601instance; unverified claims serve nothing and expire after 7 days.
602602=repo domain list= reports pending/verified/expired.
603603
604* Snippets
605
606A snippet is one or more named text files you own outside any
607repository, for a log or a fragment shared by URL. Create one from a
608file on stdin; the reply is the id and the URL:
609
610#+begin_src sh
611gitbay snippet create build.log --description "failing build" < build.log
612gitbay snippet file set <id> notes.txt < notes.txt # add or replace a file
613gitbay snippet file get <id> build.log > build.log
614gitbay snippet edit <id> --visibility public
615gitbay snippet list # yours
616gitbay snippet list <owner> # their public ones
617gitbay snippet delete <id>
618#+end_src
619
620Visibility is =public= (listed on your page), =unlisted= (anyone with
621the URL, listed nowhere; the default) or =private= (you alone; not
622found to everyone else). Files are text, valid UTF-8, each under the
623instance's =max_snippet_bytes=, at most 64 per snippet. A snippet keeps
624at least one file. There is no history: setting a file replaces it.
625
626On the web, =/<you>/-/snippets= lists yours, each snippet page renders
627its files with a raw link per file, and the same page creates, edits
628and deletes through the commands above.
629
604630* Browser sessions
605631
606632=gitbay web login= mints a one-time URL; the session it opens lasts
CHANGELOG.org +16
@@ -4,6 +4,22 @@ Versioning follows semver from v0.1.0. Database migrations run
44automatically on daemon start; upgrade notes appear per release when
55anything beyond "replace the binary and restart" is needed.
66
7* v1.20.0 — unreleased
8
9Snippets (#195): named text files a user owns outside any repository,
10shared by URL and edited in place.
11
12- Migration 0053: =snippets= and =snippet_files=.
13- =snippet create|show|list|edit|delete= and =snippet file
14 set|get|remove=. Files are UTF-8 under =limits.max_snippet_bytes=
15 (1MB), at most 64 per snippet; a snippet keeps at least one.
16 Visibility =public=, =unlisted= (default) or =private=; a private
17 snippet is not found to everyone but its owner and admins.
18- Web: =/<owner>/-/snippets= lists, each snippet page renders its
19 files with a raw route per file, and the owner creates, edits and
20 deletes from the page through the same commands. The owner page
21 links to the list.
22
723* v1.19.0 — 2026-09-11
824
925Labels and milestones an org defines once for every repository under