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
As per the README - The precedence order for settings file is repository > suborg > org (.github/repos/.yml > .github/suborgs/.yml > .github/settings.yml
However, when defining branch policies at both the suborganization and repository levels, policies that require array inputs are merged rather than being overridden.
Properties with boolean or string input types are functioning as expected, and the values defined in the repo.yml file are being correctly applied. However, properties with array input types are being merged instead of being overridden.
I discovered that the issue stems from the way safe-settings creates the final merged config from the settings files. There's also an edge case where the API call fails due to duplicate elements in the merged config. I've filed another bug report with all the relevant details.
Problem Description
As per the README - The precedence order for settings file is
repository > suborg > org
(.github/repos/.yml > .github/suborgs/.yml > .github/settings.ymlHowever, when defining branch policies at both the suborganization and repository levels, policies that require array inputs are merged rather than being overridden.
What is actually happening
suborg/default.bpr.yml
repos/repo.yml
Properties with boolean or string input types are functioning as expected, and the values defined in the repo.yml file are being correctly applied. However, properties with array input types are being merged instead of being overridden.
For instance, the restriction being applied is:
What is the expected behavior
Only the apps and users defined in the repo.yml should be applied, while the apps and users defined the sub-org level should be ignored.
Error output, if available
NA
Context
Are you using the hosted instance of probot/settings or running your own?
Running Safe Settings via Github Actions
If running your own instance, are you using it with github.com or GitHub Enterprise?
github.com
Version of probot/settings
2.1.14
Version of GitHub Enterprise
NA
The text was updated successfully, but these errors were encountered: