mibexsoftware / sonar-bitbucket-plugin

SonarQube plug-in to create pull request comments for found issues in Bitbucket Cloud
Other
122 stars 72 forks source link

Make accept on passing optional #11

Closed marvin-bitterlich closed 8 years ago

marvin-bitterlich commented 8 years ago

Context: We have to use OAuth of the repo owners account and the plugin accepts all pull requests when the build passes in his name. Something surely not intended. Please make a config option to let us choose if we want this feature or not.

cltnschlosser commented 8 years ago

Just to verify, the pull request is approved (not merged)

mrueegg commented 8 years ago

So just to see if I got you right: you want to have the possibility to configure if the plug-in approves / unapproves the pull request in case no blocker or critical issues are found? I can surely do this.

marvin-bitterlich commented 8 years ago

We just want to disable it completely. Because then it diffuses between the plugin and his decision.

mrueegg commented 8 years ago

Okay, so I will create a new option "sonar.bitbucket.approvalFeatureEnabled" for this. I should be able to implement this in the next few days.

marvin-bitterlich commented 8 years ago

thanks a lot, will add it to the script now and update soon :+1:

damianroszyk commented 8 years ago

Hi, could you make an option to configure approval/non approval for major issues? For now plugin comments pull requests but also accepts it. Thanks in advance!

mrueegg commented 8 years ago

@damianroszyk The plug-in only accepts the pull request if there are no blocker and critical issues.

Do you need something else than the mentioned new configuration option to disable approving/unapproving of pull requests?

damianroszyk commented 8 years ago

It would be nice if plugin does not accept pull requests that have major issues also ( major + blocker + critical = 0)

mrueegg commented 8 years ago

@damianroszyk I think blocker and critical issues are clear, but major issues can be debatable. So I guess I would have to make this configurable then... What do you think?

damianroszyk commented 8 years ago

@mrueegg configurable option for major issues accept is ok with me, thanks

mrueegg commented 8 years ago

@damianroszyk Optional approval feature is implemented. Could you please create a new issue for the configurable issue severities feature?