Rename reject approval policy to granular (#14516)

This commit is contained in:
Jack Mousseau authored and GitHub committed 2026-03-12 16:38:04 -07:00
1 parent d32820ab07
commit b7dba72dbd
46 files changed
+456 -419

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ pub fn assess_patch_safety(
AskForApproval::OnFailure
| AskForApproval::Never
| AskForApproval::OnRequest
| AskForApproval::Reject(_) => {
| AskForApproval::Granular(_) => {
// Continue to see if this can be auto-approved.
}
// TODO(ragona): I'm not sure this is actually correct? I believe in this case
@@ -56,7 +56,7 @@ pub fn assess_patch_safety(
let rejects_sandbox_approval = matches!(policy, AskForApproval::Never)
|| matches!(
policy,
AskForApproval::Reject(reject_config) if reject_config.sandbox_approval
AskForApproval::Granular(granular_config) if !granular_config.sandbox_approval
);
// Even though the patch appears to be constrained to writable paths, it is