Skip to content

Commit e0679ff

Browse files
authored
chore(Fork): add custom command (#717)
1 parent d33b0d4 commit e0679ff

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.fork/custom-commands.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
{
3+
"version" : 2
4+
},
5+
{
6+
"action" : {
7+
"script" : "git push gitcode.com --delete refs/heads/${ref}\ngit push gitee.com --delete refs/heads/${ref}\ngit checkout main\ngit branch --delete --force ${ref}",
8+
"showOutput" : false,
9+
"type" : "sh",
10+
"waitForExit" : true
11+
},
12+
"name" : "Delete All",
13+
"refTargets" : [
14+
"localbranch",
15+
"remotebranch"
16+
],
17+
"target" : "ref"
18+
},
19+
{
20+
"action" : {
21+
"script" : "git fetch --all --prune",
22+
"showOutput" : false,
23+
"type" : "sh",
24+
"waitForExit" : true
25+
},
26+
"name" : "Fetch All",
27+
"refTargets" : [
28+
"localbranch",
29+
"remotebranch"
30+
],
31+
"target" : "ref"
32+
},
33+
{
34+
"action" : {
35+
"script" : "git push origin refs/heads/${ref} --verbose\ngit push gitcode.com refs/heads/${ref} --verbose\ngit push gitee.com refs/heads/${ref} --verbose",
36+
"showOutput" : false,
37+
"type" : "sh",
38+
"waitForExit" : true
39+
},
40+
"name" : "Push All",
41+
"refTargets" : [
42+
"localbranch",
43+
"remotebranch"
44+
],
45+
"target" : "ref"
46+
}
47+
]

0 commit comments

Comments
 (0)