diff --git a/.fork/custom-commands.json b/.fork/custom-commands.json index a40d24c03a2..0087667e558 100644 --- a/.fork/custom-commands.json +++ b/.fork/custom-commands.json @@ -1,18 +1,32 @@ -[ +[ { - "version": 2 + "version" : 2 }, { - "action": { - "script": "git push origin ${ref}\ngit push gitee.com ${ref}", - "showOutput": false, - "type": "sh", - "waitForExit": true + "action" : { + "script" : "git branch -d localBranchName\ngit push gitee.com --delete refs/heads/${ref}", + "showOutput" : false, + "type" : "sh", + "waitForExit" : true }, - "name": "Push All Branch", - "refTargets": [ + "name" : "Delete All Branch", + "refTargets" : [ + "localbranch", + "remotebranch" + ], + "target" : "ref" + }, + { + "action" : { + "script" : "git push origin ${ref}\ngit push gitee.com ${ref}", + "showOutput" : false, + "type" : "sh", + "waitForExit" : true + }, + "name" : "Push All Branch", + "refTargets" : [ "localbranch" ], - "target": "ref" + "target" : "ref" } -] +] \ No newline at end of file