Skip to content

Commit 003b3ff

Browse files
authored
chore(Fork): add Push All custom command (#6069)
1 parent de132b9 commit 003b3ff

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.fork/custom-commands.json

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1-
[
1+
[
22
{
3-
"version": 2
3+
"version" : 2
44
},
55
{
6-
"action": {
7-
"script": "git push origin ${ref}\ngit push gitee.com ${ref}",
8-
"showOutput": false,
9-
"type": "sh",
10-
"waitForExit": true
6+
"action" : {
7+
"script" : "git branch -d localBranchName\ngit push gitee.com --delete refs/heads/${ref}",
8+
"showOutput" : false,
9+
"type" : "sh",
10+
"waitForExit" : true
1111
},
12-
"name": "Push All Branch",
13-
"refTargets": [
12+
"name" : "Delete All Branch",
13+
"refTargets" : [
14+
"localbranch",
15+
"remotebranch"
16+
],
17+
"target" : "ref"
18+
},
19+
{
20+
"action" : {
21+
"script" : "git push origin ${ref}\ngit push gitee.com ${ref}",
22+
"showOutput" : false,
23+
"type" : "sh",
24+
"waitForExit" : true
25+
},
26+
"name" : "Push All Branch",
27+
"refTargets" : [
1428
"localbranch"
1529
],
16-
"target": "ref"
30+
"target" : "ref"
1731
}
18-
]
32+
]

0 commit comments

Comments
 (0)