Add ability to edit existing push rules
requested to merge gitlab-community/terraform-provider-gitlab:fix/project-push-rules-edit-or-add-on-create into main
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
Update the gitlab_project_push_rules
resource to edit existing rules on Create
as I ran into an issue where creating a project on gitlab.com automatically adds push rules on the project, so a Create
that is and add only cause the terraform to fail. This will check for existing rules in Create
in order to determine if it should update or add new.
Edited by 🤖 GitLab Bot 🤖