Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 49b15e7775 review try-out: open a PR with the classifications on the page
The try-out page gets an "open a PR" button. It posts the page's
classifications to the new POST /api/review-classifier/open-pr, which
merges them by name into the repo's rules file on the default branch
and has the review-classifier forge account commit the result on a new
branch, review-classifier/<user>-<8 hex>, through the contents API. The
commit's author is the forge account named like the session's
Remote-User, read with the controller's admin token. The answer links
to the forge's compare page, where the user opens the PR as themselves.

The push uses the account's existing token from the store
(swarm/services/review-classifier/forge/token, scope write:repository),
so the account needs write access to the repo; a refused push answers
403 naming that. In a YAML rules file, the entries the merge leaves
alone keep their text, as long as the result reads back as the merged
list; otherwise the file is written out whole.

DefaultBranchFiles now carries each file's blob sha, which the forge
needs to replace a file, and the repo's web URL for the link.

Fixes #5259
Refs #5096
2026-10-14 18:36:36 +02:00
..
agent swarm-ui: a hide debug output toggle in the header's settings menu 2026-10-12 21:41:23 +02:00
dashboard hive: remove the read-only schedules page and the old schedule store 2026-10-13 01:45:12 +02:00
shared swarm-ui: a hide debug output toggle in the header's settings menu 2026-10-12 21:41:23 +02:00
swarm-ui review try-out: open a PR with the classifications on the page 2026-10-14 18:36:36 +02:00