feature!: add built-in parameter ${BRANCH_FRIENDLY_NAME} for custom action

- BREAKING CHANGE: Change `${BRANCH}` to pure branch name, which means it not contains the `${REMOTE}` part for remote branch
- Re-design UI/UX for custom action

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-08-15 16:50:21 +08:00
parent c8da655a51
commit 4e01270cc0
9 changed files with 65 additions and 44 deletions

View File

@@ -182,7 +182,7 @@ namespace SourceGit.ViewModels
return Target switch
{
Models.Branch b => org.Replace("${BRANCH}", b.FriendlyName).Replace("${REMOTE}", b.Remote),
Models.Branch b => org.Replace("${BRANCH_FRIENDLY_NAME}", b.FriendlyName).Replace("${BRANCH}", b.Name).Replace("${REMOTE}", b.Remote),
Models.Commit c => org.Replace("${SHA}", c.SHA),
Models.Tag t => org.Replace("${TAG}", t.Name),
Models.Remote r => org.Replace("${REMOTE}", r.Name),