You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our policy files are very large, with large sections generated based on the file paths and github teams in a repo.
To make this management easier, we'd like to be able to split the .policy.yml into multiple files. This could be done by supporting an "include" statement, or with a .d/ directory inclusion approach.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. Beyond making the files smaller, can you share some examples of how management would be easier for you if it was possible to split a policy in to multiple files?
Related, is there a particular way you envision inclusion working? The policy file contains both the policy section and the approval_rules section. Will the policy definition exist in the root .policy.yml file but then rules could be included from other files? Can you put any section in any file and they're merged together in some way?
There's also some performance considerations. Loading the policy is one of the most common operations (it happens on almost every webhook event), so increasing the number of GitHub requests required to read the full content could quickly add up in a high-traffic repository with many included files. We'd likely need to redesign how policy loading works to minimize API requests.
Our policy files are very large, with large sections generated based on the file paths and github teams in a repo.
To make this management easier, we'd like to be able to split the
.policy.yml
into multiple files. This could be done by supporting an "include" statement, or with a.d/
directory inclusion approach.The text was updated successfully, but these errors were encountered: