Use state if mirror branch regex is unknown in project mirror
-
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. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Fixes a bug with the gitlab_project_mirror resource where it would be stuck in a perpetual plan if the mirror_branch_regex attribute wasn't provided. Set to use state for unknown which exposed another bug where the regex wasn't getting checked for the empty string on update. This fixes both issues.
References
Resolves #6473 (closed)
Edited by 🤖 GitLab Bot 🤖