Closed maoo closed 4 years ago
@maoo - Thanks for opening this issue and coming up with such a great idea!
It would be great to bring this suggestion to the FINOS Open Developer Platform working group for discussion and prioritisation before moving forward with the change.
I have created the backlog item here ... https://finosfoundation.atlassian.net/browse/ODP-110
In particular, we should bring answers to the following ...
Thanks once again and I look forward to discussing soon.
James.
Hi @maoo so what you are basically after is the ability for repos to have their own config that overrides an organisation-level config?
In that case, there's a very simple change that can be made without needing extra configuration parameters. We simply give repository-level config files a higher level of precedence than organisation-level ones.
In other words
If (2) exists, that takes precedence
WDYT?
Thanks for the feedback.
@mcleo-d +1 , thanks for adding the item in the ODP backlog
In other words
- fetch org-level config
- fetch repo-level config If (2) exists, that takes precedence
@ColinEberhardt - that is basically the idea, but adding the ability at org-level to 1) decide whether the repo override feature is enabled or not and 2) decide which repos are allowed.
If we don't make this configurable, this change would cause a different behaviour of the existing instances (assuming a repo defines a .clabot
file, maybe unknowingly).
Closing this issue, as FINOS doesn't need this feature any longer; feel free to reopen if there's anyone else interested.
Currently, the CLA bot tries to resolve configuration at org level (looking for a
clabot-config
repository), otherwise it falls back to repo configuration.Code is on https://github.com/finos/cla-bot/blob/develop/src/index.js#L155-L182
Side note,
getReadmeUrl
should be probably be renamed togetRepoConfig
.I'd like to propose the introduction of 2 parameters as part of the
.clabot
definition:allowRepoConfigOverride
(true
/false
, defaults to false, to preserve backward compatibility), tries to resolve configuration at repository levelallowRepoConfigOverride
isfalse
.Draft code below (not tested yet):
@ColinEberhardt - happy to send over a PR, if you like the idea!