Discussion: org-wide or instance-wide auto_review provisioning #145
Labels
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Discussion placeholder
This is not an implementation ticket and should not be picked up as a scoped
feat(...)task yet. It exists to capture design notes and trade-offs around whetherauto_reviewcould support org-wide or instance-wide Forgejo provisioning.Context
Question raised: when both Forgejo and
auto_revieware deployed via NixOS / theauto_reviewflake, couldauto_reviewautomatically configure itself for all repos on the system instead of requiring one repo at a time?The desired behavior would be:
/reviews/ciendpoint.Initial design notes
Pure flake evaluation should not mutate Forgejo or contain live secrets. If this exists, it should likely be a runtime provisioning/reconciliation path, for example:
systemdoneshot/timer;The cleanest model appears to be org-level provisioning:
auto-reviewbot user.pull_requestevents, and possiblyissue_commentif chat commands are desired.AUTO_REVIEW_ACTION_TOKEN.Instance-wide provisioning may be possible with Forgejo system hooks or API reconciliation, but personal/user-owned repos probably need explicit enumeration, policy, or periodic reconciliation.
Security / operational caveats
sops-nix,agenix, or root-owned runtime files.AR_FORGEJO_TOKEN,AR_CI_REVIEW_TOKEN, webhook secret drift, and accidental workflow use.issue_commentis installed globally,@auto_review re-reviewcan intentionally bypass CI gating. A CI-only deployment may want to omit comment events or add a future chat-command allowlist/config switch.Possible future shape
A future operator interface might look conceptually like:
Or via NixOS:
Open discussion questions
Again, this issue is only a placeholder for discussion and design capture, not a request to implement the feature as currently described.