tickets

gitoria.worldapi.org #38

Evaluate a push API where outside apps register to work with gitoria, first a code reviewer

review

opened by Gitoria · assigned to Caramboleyo

opened · updated

caramboleyo (via Apollo, 2026-10-31):

> gitorias first job is to evaluate how to make a push api where external apps can register to interact with gitoria. first use case being a code reviewer. vinzenz built konrad over the past to weeks a code rabbit replacement for github. basically we want vinzenz now to build a similar tool with gitoria and hybriel.

Gitoria's reading (unconfirmed): the result is a written evaluation, not code. It answers how an outside app registers with gitoria, which events gitoria pushes to it (for example a new PR or a new commit on a PR), and how the app answers back (for example review comments on a PR), with the code reviewer as the first case.

NOT HIS: who builds the reviewer and where is caramboleyo's decision (corrected 2026-10-31 per Apollo); I ask, not decide.

Children

all children done (8)

Blocks

  • reviewkunibert #1Build a code reviewer for gitoria like an existing reviewer design, with gitoria and Hybriel

History

  1. Gitoria opened the ticket
  2. 1 comment

    1. Gitoria
      edited

      Edited once

      1. Started: one worker writes the evaluation (no code). I will post the result and the open questions here.
        Write…
    2. Gitoria changed the state progress
    3. 1 comment

      1. Gitoria
        edited

        Edited once

        1. Evaluation done (no code). Recommendation: the repo owner connects an app to a repo, like the tickets connect. Gitoria then sends it a signed message per push or pull request, and the app may read the diff, comment and give a verdict, but never push or merge. About 10 work steps.
          Missing today: diffs, comments on pull requests, a fixed pull request number, the event sending itself.
          Who builds the reviewer and where: I am asking Vinzenz through Apollo.
          Question: shall I plan the build this way? (yes/no)
          Write…
      2. Gitoria changed the state pending
      3. Gitoria assigned the ticket to Caramboleyo
      4. 2 comments

        1. Gitoria
          edited

          Edited once

          1. caramboleyo (via Apollo, 2026-10-31), the goal the push API serves:
            
            > with the code reviwere in the making we then start to move to a PR focused development. full goal here is to auto deploy PRs in an own review container. features can then be merged by me, when i accept them. smaller and utility things directly from you.
            
            I am adding this goal to the evaluation now.
            Write…
          • Gitoria
            edited

            Edited once

            1. Your PR goal is in the evaluation. The same plan fits: a second connected app, the deployer, gets the same signed events and starts a review container per pull request, removing it when the request is merged or closed. That makes about 13 steps.
              Needed for it: a fixed pull request number, a "closed" event, and an own address zone for review containers (pr-1.notes.gitoria… is not covered by the certificate).
              You merge with the owner's Merge button; the reviewer and deployer never merge. Direct pushes to main stay allowed.
              Question: who builds the reviewer and the deployer — Vinzenz? (yes / name)
              Write…
          • Gitoria edited the ticket
            Summary before

            caramboleyo (via Apollo, 2026-10-31):

            > gitorias first job is to evaluate how to make a push api where external apps can register to interact with gitoria. first use case being a code reviewer. vinzenz built konrad over the past to weeks a code rabbit replacement for github. basically we want vinzenz now to build a similar tool with gitoria and hybriel.

            Gitoria's reading (unconfirmed): the result is a written evaluation, not code. It answers how an outside app registers with gitoria, which events gitoria pushes to it (for example a new PR or a new commit on a PR), and how the app answers back (for example review comments on a PR), with the code reviewer as the first case.

            NOT HIS: who builds the reviewer and where is Vinzenz's decision; I will ask, not decide.

          • 2 comments

            1. Gitoria
                Write…
              • Gitoria
                  Write…
              • Gitoria changed the state progress
              • 2 comments

                1. Gitoria
                  edited

                  Edited once

                  1. How to connect one of your repos to Kunibert (the code reviewer). Today this works one repo at a time.
                    
                    1. Open the repo's Settings while signed in as its owner: https://<repo>.gitoria.worldapi.org/settings (an organization repo: /<repo>/settings). Under **Apps**, enter App name `Kunibert` and Receiver address `http://127.0.0.1:45011/hook/gitoria`, then click **Add app**.
                    2. Gitoria shows a **key** and a **secret** once. Do not paste them into a chat or a ticket. Put them on byrodin, each typed in with no echo:
                       `install -d -m 700 /root/.config/kunibert; (umask 077; read -rs k; printf %s "$k" > /root/.config/kunibert/gitoria-<repo>-key; read -rs s; printf %s "$s" > /root/.config/kunibert/gitoria-<repo>-secret)` (paste the key, Enter, then the secret, Enter).
                    3. Tell Kunibert the repo name. Kunibert adds the repo to its list and restarts.
                    4. Back in Settings → Apps, click **Send ping**. The line under Kunibert should then say "delivered".
                    5. Optional: under **Required before merge**, add `kunibert`. Merge then stays off until Kunibert's check on the PR's current head is success.
                    
                    A PR is still a commit whose subject starts with `|||PR `. Kunibert reviews it, and you see its review and status on /pulls. Remove or Rotate secret in Settings stops it at once.
                    
                    Note (NOT HIS): step 2 is needed because Kunibert has no public address. If it gets one under worldapi.org, the one-click connect flow can hand over the key and secret directly, so you never see them.
                    Write…
                  • Gitoria
                    edited

                    Edited once

                    1. Review package: the push API is live, and Kunibert is the first app on it (deploy b8252ca). All 8 parts are built; Kunibert proved them on its test repo.
                      **Test:**
                      1. Open https://kunibert-proof.gitoria.worldapi.org/pulls/1. This is the new PR page. It shows Kunibert's check ("failure"), its verdict, its four reviews and its line comment on cart.py:3. (I looked at it in your Chrome at 390 and 1280.)
                      2. On a repo of yours: Settings → Apps → Add app, name `Kunibert`, receiver `http://127.0.0.1:45011/hook/gitoria`. Then do the key/secret step from comment 10 above and tell Kunibert the repo name.
                      3. Push a commit whose subject starts with `|||PR ` on a branch. Kunibert reviews it, and you can answer on /pulls/N (comment, reply, Resolve, "Review again").
                      4. Optional: Settings → Required before merge → Kunibert + `kunibert`. Merge then stays off until Kunibert says success.
                      **Details:**
                      - Only the owner and members can write on the PR page (my reading, NOT HIS).
                      - Each app's results are its own: no app can overwrite another's (contract v1.4, Vinzenz).
                      - The contract is docs/apps-api.md in the gitoria repo.
                      Write…
                  • Gitoria changed the state review

                  Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.