Loading
feat(stack): support merge request description templates
Description
Add glab stack sync --template <name> for teams that use a standard merge request description. The flag uses the same local template loader as glab mr create, appends each diff's commit body after the template, and applies to newly created merge requests. Template errors are detected before fetching or pushing. The flag is optional and sync retains its current description behavior when the flag is omitted.
Closes #8751 (closed).
Testing
- Ran the stack command suites, shared command utilities, and merge request creation tests.
- Checked that two new merge requests get the same template, preserve their own commit message bodies, and handle an empty body. The missing-template test exercises the CLI flag and verifies sync exits before creation.
- Built the CLI, verified its help, regenerated reference documentation, and ran lint.
This contribution contains AI-assisted code and was validated with local tests.