Add issue_branch_template attribute to gitlab_project resource
What does this MR do?
Adds the issue_branch_template attribute to the gitlab_project resource.
The attribute (template for branch names suggested when creating a branch from an issue, per the Projects API) is already exposed on the gitlab_project and gitlab_projects data sources but was missing from the resource. This wires the attribute through the schema, create, read, and update paths, mirroring the existing issues_template handling.
MR Checklist
- Attribute name matches the GitLab API 1:1 (
issue_branch_template↔️ IssueBranchTemplateonEditProjectOptions/Projectinclient-go). - Acceptance test coverage added: extends
TestAccGitlabProject_IssueMergeRequestTemplateswith the new attribute, matching the existing inline config + assertion style forissues_template/merge_requests_template. -
make reviewablepasses locally — build, gofmt, golangci-lint (0 issues), tfplugindocsgenerate, and unit tests are all green. - Generated docs included (
docs/resources/project.md). - [N/A]
examples/resources/gitlab_project/resource.tfnot updated — the canonical example shows minimal usage and does not enumerate every attribute (siblingissues_templateandmerge_requests_templateare likewise omitted).
Notes
- Acceptance tests requiring a live GitLab were not run locally (no
TF_ACC=1env). CI will exercise them. - The existing
TestAccGitlabProject_IssueMergeRequestTemplatesuses bespoke check functions; the new assertion follows the same pattern for consistency with siblings in the same test function. Migrating that whole test toTestCheckResourceAttr+ImportStateVerifyfelt out of scope for an attribute-add MR but is a fair follow-up. - Supersedes a previous draft (lu.cesarano fork) that could not run CI due to missing community-fork runner access.
Edited by Patrick Rice