zeke / semantic-pull-requests

:robot: Let the robots take care of the semantic versioning
https://github.com/apps/semantic-pull-requests
Apache License 2.0
1.24k stars 122 forks source link

Opt-in check only by adding a configuration #164

Closed electriquo closed 3 years ago

electriquo commented 3 years ago

from the docs: https://github.com/zeke/semantic-pull-requests/blob/021ebc531acdbd9fa882acb9371ecf480a65d17b/README.md?plain=1#L56-L60

By default, no configuration is necessary.

Is there any chance to change the default behavior such that only when a configuration is present, the check and validation is taking place?

Such behavior will allow organizations and enterprises use this bot in opt-in manner, while not enforcing all the organization to switch to conventional commits in the PR title. In the same spirit as https://github.com/probot/settings, https://github.com/probot/stale/ and others

zeke commented 3 years ago

Ah good point, but that might be a hard thing to support at this stage, given that this app already has tons of users.

You can currently opt out by adding a semantic.yml with enabled: false, or you can configure your GitHub App installation to be enabled on specific repos, instead of the entire org.

electriquo commented 3 years ago

@zeke is there any ability to support the 2 modes when installing the app?

zeke commented 3 years ago

Not sure what you mean. Which 2 modes are you referring to?

electriquo commented 3 years ago

@zeke meant for opt-in or opt-out modes

zeke commented 3 years ago

I don't believe so. I would suggestion one of the two options I suggested above, or fork this project, host your own copy, and bend it to your will. See also https://github.com/zeke/semantic-pull-requests#alternatives

Good luck!