mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-26 03:40:45 +08:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user