Closed 3mini closed 6 months ago
I made a custom command as below.
As shown in the screenshots, the selected tag name was expected to be used as the $1{ref} variable in the OK action, but it references a different value.
$1{ref}
OK
Thank you for reporting this. I've reproduced the problem.
We just released Fork 2.40.2 with the fix. Please check for updates.
I've confirmed that the issue has been resolved. Thanks for your quick response.
Environment
Description
I made a custom command as below.
custom-commands.json
```json [ { "name" : "Custom Command", "target" : "repository", "ui" : { "buttons" : [ { "action" : { "script" : "echo $1{sha}\necho $1{sha:abbr}\necho $1{ref}\necho $1{ref:short}\necho $1{ref:full}", "showOutput" : true, "type" : "sh", "waitForExit" : true }, "title" : "OK" }, { "action" : { "type" : "cancel" }, "title" : "Cancel" } ], "controls" : [ { "dropdownType" : "references", "filter" : "refs\/tags\/", "title" : "Tag", "type" : "dropdown" } ], "description" : "", "title" : "Tag" } } ] ```As shown in the screenshots, the selected tag name was expected to be used as the
$1{ref}
variable in theOK
action, but it references a different value.