Repository navigation
Conversation
Move the approval guard's repo, roster, required check, and approvable workflows into repos.json. Approval is opt-in per repo: desktop is registered review-only, and unregistered repos are denied. Extend the provider policies to cover desktop. Read the stale-payload version from ai-openshell/openshell so the agent definition is not duplicated in each target repo. Signed-off-by: Evan Lezar <elezar@nvidia.com>
Contributor
Author
|
Open question for reviewers: how should gator decide who counts as a maintainer in repos other than Today the approval guard reads a The org already tracks maintainers as GitHub teams managed in the infra repo: a top-level
Things to decide:
I have not implemented the team source in this PR. Happy to do it here or as a follow-up, depending on feedback. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lets gator review PRs in
ai-openshell/desktopwithout duplicating the agent definition there. Opened as a draft for feedback; approval on desktop stays disabled.Related Issue
None yet. Opening as a draft to get feedback on the design before filing or linking an issue.
Changes
repos.json, shipped at/etc/openshell/gator-repos.json. It registers each repo gator may work in, with per-repo approval settings (enabled,maintainers_file,required_check,required_check_integration_id) and the workflow pathsapprove-gator-workflowmay approve.bin/ghandbin/approve-gator-workflowread the registry instead of hardcodingai-openshell/openshell. A repo that is unregistered or has approval disabled is denied, with no default.ai-openshell/desktopwith approval disabled and no approvable workflows.ai-openshell/openshell, so desktop needs no copy ofagent.yaml. Bumppayload_versionto 26.Release Notes
Testing
All gator test scripts pass in an Ubuntu container (they need Bash 4+). New cases cover approval denial for a registered-but-disabled repo and an unregistered repo, and workflow-approval denial for both. A local gator against desktop PR 16 read the PR and applied
gator:in-review; a full cycle on the final payload is not yet verified.Checklist