Resolve "Store Duo Context Exclusion on Project Settings"
What does this MR do and why?
Adds the ability to store Duo Context Exclusion settings on project settings for use in excluding context for AI usage
How to set up and validate locally
mutation {
projectSettingsUpdate(input:{ fullPath: "full/project/path, duoContextExclusionSettings: { exclusionRules: [ "test", "!includetest" ]}}) {
projectSettings{
duoContextExclusionSettings {
exclusionRules
}
}
}
}
You can also check an individual file against the rules using the Ai::FileExclusionService, which will be used in follow up issues by the various AI services
Ai::FileExclusionService.new(Project.find_by_full_path("full/project/path")).execute(["test.rb"])
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #544013 (closed)
Edited by Allen Cook