-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suborgproperties
is matching too many repositories
#748
Comments
@grossag I'm working on it and will submit a pull request soon that maintains the glob functionality |
Great! Here is a patch that fixed it for me and also added more trace logging to help diagnose future issues: safe-settings-patch.txt. It did drop the glob though, so it is not consistent with what you are trying to do. Can you explain why the glob functionality is needed? Each usage of |
Ok reading through your diff it looks like this is also used by Your change looks good to me. It fulfills my need in that |
Thanks for you feedback.
From my understanding, one reason is that To maintain consistency across the org configuration and other configuration files, I decided to keep glob pattern "support" for Ref: |
Problem Description
I have a suborg file:
This rule matches 11 repositories in my organization, one of which is
euc-vdi/cart
. So we end up with this entry insettings.js
this.subOrgConfigs
:That is correct, but this function implementation does too loose of matching:
It causes any repository name starting with
cart
to match this rule!Can this be fixed by changing the function to simply be this:
Context
Are you using the hosted instance of probot/settings or running your own?
Running our own.
If running your own instance, are you using it with github.com or GitHub Enterprise?
GitHub Enterprise Cloud, so github.com
Version of probot/settings
This issue happens when deploying either a692dbf or 774b2e5
Version of GitHub Enterprise
Using cloud.
The text was updated successfully, but these errors were encountered: