From 57c74a53295e7cba5352affc5c0be56af0dbb2c5 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 21 May 2025 09:00:30 +0800 Subject: [PATCH] chore(Fork): add Push All custom command --- .fork/custom-commands.json | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) 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