Skip to content

Commit a7f5b71

Browse files
authored
NEW: Added Repository QoL Fork commands and Windows commands shortcuts for Powershell (#1930)
1 parent 3a454e8 commit a7f5b71

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

.fork/custom-commands.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[
2+
{
3+
"version" : 1
4+
},
5+
{
6+
"action" : {
7+
"type" : "url",
8+
"url" : "https://github.com/Unity-Technologies/InputSystem/compare/develop...${ref:short}?expand=1"
9+
},
10+
"name" : "GitHub: Create PR for branch",
11+
"refTargets" : [
12+
"localbranch",
13+
"remotebranch"
14+
],
15+
"target" : "ref"
16+
},
17+
{
18+
"action" : {
19+
"type" : "url",
20+
"url" : "https://github.com/Unity-Technologies/InputSystem/tree/${ref:short}"
21+
},
22+
"name" : "GitHub: Open branch",
23+
"refTargets" : [
24+
"localbranch",
25+
"remotebranch"
26+
],
27+
"target" : "ref"
28+
},
29+
{
30+
"action" : {
31+
"type" : "url",
32+
"url" : "https://unity-ci.cds.internal.unity3d.com/project/130"
33+
},
34+
"name" : "View on Yamato",
35+
"target" : "repository"
36+
},
37+
{
38+
"action" : {
39+
"type" : "url",
40+
"url" : "https://unity-ci.cds.internal.unity3d.com/project/130/branch/${ref:short}"
41+
},
42+
"name" : "Yamato: Open branch",
43+
"refTargets" : [
44+
"localbranch",
45+
"remotebranch"
46+
],
47+
"target" : "ref"
48+
}
49+
]

cleangarbage.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REM Use this script if you don't want to enable script executions on your system
2+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& .\cleangarbage.ps1"

format.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REM Use this script if you don't want to enable script executions on your system
2+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& .\format.ps1"

format.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
if ( Test-Path ${Home}/unity-meta )
2+
{
3+
git -C ${Home}/unity-meta fetch
4+
git -C ${Home}/unity-meta pull
5+
}
6+
else
7+
{
8+
git clone git@github.cds.internal.unity3d.com:unity/unity-meta.git ${Home}/unity-meta
9+
}
110
perl "${Home}/unity-meta/Tools/Format/format.pl" Assets Packages
211

0 commit comments

Comments
 (0)