-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Proposal: Repo specific settings for eslint-bot #46
Comments
I'm not opposed to this, but I'm also not convinced that it's necessary based on our current set of plugins. It seems like the only plugin that currently needs any configuration is If we do add this, I don't think we should put the config file in the |
Probot is built by the Github team and they store all the config inside .github folder. That where probot is going to read from. I think implementing this would help us in the future also when we introduce more plugin. I think These technique will help us enchance our plugins to be more robust by behaving based on the repo. For example, |
My interpretation of the
I agree -- I'm just not sure we've reached a point yet where it's worthwhile. In my opinion, the downsides are:
What if we stored the configuration for all projects in the |
I cant comment on this point as this is how
This is an internal plugin and we have full jurisdiction over all the repos. And 90% of cases repo would use the default behavior.
Why, again 90% of the times no changes are needed. Rarely we need changes.
We already do so many interactions so doing another useful one is not an issue. Also this is not a time critical app. Also that how probot architecture has been designed.
I dont think so. Again i think these settings should be used in rare scenarios and not all the time. Even adding another plugin to eslint-bot increases the complexity of eslint-bot.. Overall, just trying to make things better and more robust. I believe its a good infrastructure to leverage to make the bot smart. Using needs info label and posting the current message doesn't make any sense for example.
I am not opposed to it but i wanted to stick to what the |
For what it's worth, in my WIP implementation of auto-accepting rule issues based on champion and 👍 count, due to limitations in the GitHub webhooks (i.e., no webhook for reactions), I've had to consider using a scheduler for checking all open issues/PRs and in that case I would want repository-level configuration. (Of course, I would prefer that the limitations of the webhooks be addressed instead, but that's not where we are at right now.) |
Repo-level configuration is a good idea. I'm sure there will be many more plugins that we will need on the main repo that don't make sense for the others. |
I did implement this here at work as I use the same bot at work also. It works fine and it has not created any issues. |
My point of view is the same as it was in #46 (comment). I don't object to adding repo-specific configuration, but I think it would be a lot better for that configuration to be stored in the |
@eslint/eslint-team please let me know what you all think so that we can make a decision and close the issue accordingly. I dont want to keep the issue open if we are not going to act on it. |
As we have more n more plugins, I have seen some need where some repos inside ESLint org may need to deactivate the behavior of a particular plugin and not make the plugin do something slightly different (this might be a rare case).
Proposal
Probot
architecture..github/eslint-bot.yml
file which can store settings for each repo when needed.context.config
function. Where a plugin also supply defaults for repos which do not have any settings.triage
plugin needs no settings and it should be active for all repos always.Current plugin usage
commit-message
.github/eslint-bot.yml
file insideeslint.github.io
andtsc-meetings
repo to disable this plugin.release-monitor
.github/eslint-bot.yml
file insideeslint
repo to enable this plugin.eslint-bot.yml
active
with true or false value..The text was updated successfully, but these errors were encountered: