gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1997e77d1997e77dgitoria#40: stable PR numbers, refs/pull/N/head, ssh pushes reach the app (merge w40-pr-number)mre1997e77d/CONCEPT.md

4.7 KB

  1. # gitoria.worldapi.org — concept
  2. Git hosting for all projects, built in Hybriel (hl:webex), login via ident. Source of truth = the creator's words below.
  3. ## The creator's first thoughts (ticket gitoria.worldapi.org#1, 2026-09-24, verbatim)
  4. > Wildcard url: *.gitoria.worldapi.org
  5. > a new repo needs a slug for that thats unique in the hole system.
  6. > a repos / shows the README.md parsed to html, if there is a $docs folder it renders all md files inside that folder as a homepage
  7. >
  8. > /code shows the current state of their main branch (can be switched in settings)
  9. > /branch/xy shows entire branch at last comit
  10. > /commit/xy shows entire project at that commit
  11. > /tickets implements the ticketlist view of tickets.worldapi.org, the moment one ticket is created the project is created in tickets.worldapi.org - when a user loggs in to tickets.worldapi.org they see all tickets of a gitoria project like its a tickets project.
  12. > /pulls commits starting with `|||PR ` create a pull request using the branch title the main target for PRS can be configured in settings and is main by default `|||PR|name-of-branch] ` at the beginning of a commit sets a target branch
  13. > /releases a commit starting with `|||RL ` creates a semver release by default it counts up the last one 0.0.1 `|||RL|med ` counts up the middle number 0.1.0 and `|||RL|mj ` the major version 1.0.1 with `|||RL|1.1.1a ` the version can be set manually
  14. Earlier (chat, 2026-09-23/24): "i use ident login to login to ticktes and gitoria. i host the code in gitoria and use tickets
  15. to manage their tasks." · "deploy.sh yes, until gitoria does it automatically".
  16. ## Structure (architect's reading of the above — the quotes count)
  17. - **A repo** = a unique slug (unique in the whole system) → reachable at `https://<slug>.gitoria.worldapi.org`.
  18. - **`/`** = the repo's README.md rendered as HTML; if the repo has a `$docs` folder, all its Markdown files form the homepage.
  19. - **`/code`** = the main branch now (which branch is "main" is a repo setting). **`/branch/<name>`** = a branch at its last
  20. commit. **`/commit/<id>`** = the whole project at that commit.
  21. - **`/tickets`** = the tickets list of tickets.worldapi.org for this repo; the tickets project is created with the first
  22. ticket; in tickets.worldapi.org a gitoria project appears like any tickets project.
  23. - **`/pulls`**: a commit message starting `|||PR ` opens a pull request (title = branch title) into the default target
  24. (repo setting, default `main`); `|||PR|<branch>] ` sets the target.
  25. - **`/releases`**: a commit message starting `|||RL ` creates a semver release, patch +1 by default; `|||RL|med ` minor +1,
  26. `|||RL|mj ` major +1, `|||RL|<version> ` sets it explicitly.
  27. - Existing research: `docs/differ-from-custom-ide.md` (the diff logic is reusable) — shared components live in
  28. layouts.worldapi.org (creator).
  29. ## Open — not decided by the creator yet (a worker must not invent these)
  30. - ~~How code gets in and out~~ — decided (gitoria#5): "the dev can use ssh keys or the git http credentials if thats not deprecated by git itself". How to do it in Hybriel: research ticket gitoria#5.
  31. - Who may create repos; who may push beyond the owner and the members (public / private repos and organizations: see "Private repos and organizations" below).
  32. - Merging pull requests: where and by whom.
  33. - What a release contains besides the version (tag only? downloadable archive?).
  34. - The 4 old repos rescued from the previous gitoria (byrodin `/CONTAINERS/projects/gitoria.worldapi.org/repos-rescued-2026-09-24/`):
  35. import them or not.
  36. ## Old gitoria (Byrodin, hybrilior) — 2026-09-24
  37. The old container is removed. It hosted 4 bare repos (hybrilior, misant, mpackdb, bsondb); rescued to
  38. byrodin:/CONTAINERS/projects/gitoria.worldapi.org/repos-rescued-2026-09-24/.
  39. ## Private repos and organizations (ticket gitoria#34, GO34 — built, not deployed)
  40. - A repo is public or private (one repo at a time); an **organization** (`<org>.gitoria.worldapi.org`) can be private too, then all its repos are, new ones included. Its repos live at `<org>.gitoria.worldapi.org/<repo>/…` and look like a repo page on `<repo>.gitoria.worldapi.org` (links stay inside `/<repo>`). Clone: `https://<org>.gitoria…/<repo>.git`, ssh `<org>/<repo>.git`.
  41. - **Members** (one list per repo and per organization, later also the list for ident#27): see a private repo and may push to it. Owners add them by display name (Settings / the org page).
  42. - Whoever may not see a repo gets the answer for a name that does not exist (page, API, git, ssh access). Names of organizations and top-level repos share one namespace.
  43. - `tools/move-repo.hl` moves a repo (same bare repo, members go along, the old name forwards: `/` answers 302, git on the old path keeps working). `tools/create-repo.hl` makes an empty repo in an organization with a member. Both run with the app stopped.

Branches

Latest commits

  • 1997e77dgitoria#40: stable PR numbers, refs/pull/N/head, ssh pushes reach the app (merge w40-pr-number)mre
  • 9364fb16gitoria#40: ssh pushes call /__git/pushed before and after (ensurePulls, notifyPush, syncPulls); gate over the sshd imagemre
  • fdb9ed28gitoria#41: repo owners can connect an app (merge w41-apps-connect)mre
  • 2ef23df0gitoria#40: the browser gate reads the title without the #Nmre
  • 9af07ecegitoria#41: connect an app to a repo (apps table, connect flow, manual add, allow-list, settings)mre
  • b9137ff0gitoria#40: pull requests are stored with a number, refs/pull/N/head, syncPulls and pullObject; /pulls shows #Nmre
  • 06d622daown image tag gitoria-runtime:debian12 for gitoria and standby (shared tag lost git)mre
  • 20caa33agitoria#37: media queries in the language's @media block (minWidth = '60rem') in list, codebrowser and repomre
  • c4175e6dgitoria: a startup error prints its message before exit 1 (hybriel#247)mre
  • c50d17efKeep function-route not-found style in shared stylesheetmre
  • e42d78d3Preserve ticket state CSS and document function-route style gapmre
  • c6b7154eWIP gitoria#26: move styles into nested component blocksmre
  • 77a2c31cgitoria#31: plain declarations instead of needless let in lib/ and tools/ (103 let removed, 137 kept because reassigned); no other changemre
  • 4b98ab62gitoria: an ident access key (idt_) works as the git password; read key clones only, bad key 401, ident down 503 (ident#27); gate tests/ident-access-gitoria.mjs in deploy.shmre
  • 1185f686gitoria#36: a failed return from tickets shows a note on the settings page and leaves one log line per outcome; no code is exchangedmre
  • 5d2c385agitoria: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 71+5 failing → 76 passed; deploy.sh runs tests/private.mjs toomre
  • 241ef3f9deploy.sh: rebuild the sshd image before up -d (GO34c)mre
  • 821cdbb1gitoria#34b: styles, create-repo tool, docs, push/ssh gates sign in through the selector, shots scriptmre
  • a81abdc9gitoria#34: org page via function route, member-reachable orgs, selects, reportmre
  • 17f031f0gitoria#34: private repos, organizations, members, move tool, gatemre