jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

Support creating a Quality Gate by copying existing Quality Gate #131

Closed felixlut closed 1 year ago

felixlut commented 1 year ago

Currently the sonarqube_qualitygate resource only supports two inputs (name and is_default).

It would be nice to be able to create Quality Gates by copying an existing gate, just as the Copy button in the UI (see image below), or the api/qualitygates/copy endpoint.

bild

My proposed solution is to add an extra argument (copy_from) to the sonarqube_qualitygate resource to support copying an existing gate.

felixlut commented 1 year ago

I can work on this

jdamata commented 1 year ago

Sounds good to me. I've assigned this to you. Please be sure to update the docs and add a test case for this parameter.

Thanks!

jdamata commented 1 year ago

Thanks you @felixlut for your work on this. Ive cut a new release with this feature.