feat(stack): add Body() method to StackRef and fix subject/body parsing in MR creation

Description

When stack sync creates merge requests, multi-line commit descriptions (subject + body) could leak the full message into the MR title — including trailers like Changelog: changed. This happened because of two bugs:

  1. Subject() never actually splitstrings.SplitN(desc, "\n", 1) with limit 1 returns the entire string unsplit. Changed to limit 2.
  2. MR title truncation was wrongmaxMRTitleSize is 252, but the truncation hardcoded title[0:68] + "..." (71 chars). Now correctly uses title[:maxMRTitleSize-3] + "...".

Closes #7651 (closed)

Edited by Gary Holtz

Merge request reports

Loading