Skip to content

Commit 5b2d7d7

Browse files
committed
vscode commit debug config
1 parent 7d5ae5f commit 5b2d7d7

File tree

1 file changed

+73
-3
lines changed

1 file changed

+73
-3
lines changed

.vscode/launch.json

Lines changed: 73 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,54 @@
2828
"--help"
2929
]
3030
},
31+
{
32+
"type": "node",
33+
"request": "launch",
34+
"name": "commit good branch",
35+
"skipFiles": [
36+
"<node_internals>/**"
37+
],
38+
"cwd": "${workspaceFolder}",
39+
"program": "${workspaceFolder}/github.js",
40+
"args": [
41+
"commit",
42+
"--owner",
43+
"pirafrank",
44+
"--repo",
45+
"test-repo",
46+
"--branch",
47+
"main",
48+
"-c",
49+
"dummy/file1.txt",
50+
"-m",
51+
"this is a commit msg"
52+
],
53+
"envFile": "${workspaceFolder}/.env"
54+
},
55+
{
56+
"type": "node",
57+
"request": "launch",
58+
"name": "commit BAD branch",
59+
"skipFiles": [
60+
"<node_internals>/**"
61+
],
62+
"cwd": "${workspaceFolder}",
63+
"program": "${workspaceFolder}/github.js",
64+
"args": [
65+
"commit",
66+
"--owner",
67+
"pirafrank",
68+
"--repo",
69+
"test-repo",
70+
"--branch",
71+
"not-main",
72+
"-c",
73+
"dummy/file1.txt",
74+
"-m",
75+
"this is a commit msg"
76+
],
77+
"envFile": "${workspaceFolder}/.env"
78+
},
3179
{
3280
"type": "node",
3381
"request": "launch",
@@ -38,9 +86,31 @@
3886
"program": "${workspaceFolder}/github.js",
3987
"args": [
4088
"branch",
41-
"--owner", "pirafrank",
42-
"--repo", "test-repo",
43-
"--branch", "main"
89+
"--owner",
90+
"pirafrank",
91+
"--repo",
92+
"test-repo",
93+
"--branch",
94+
"main"
95+
],
96+
"envFile": "${workspaceFolder}/.env"
97+
},
98+
{
99+
"type": "node",
100+
"request": "launch",
101+
"name": "branch does NOT exist",
102+
"skipFiles": [
103+
"<node_internals>/**"
104+
],
105+
"program": "${workspaceFolder}/github.js",
106+
"args": [
107+
"branch",
108+
"--owner",
109+
"pirafrank",
110+
"--repo",
111+
"test-repo",
112+
"--branch",
113+
"not-main"
44114
],
45115
"envFile": "${workspaceFolder}/.env"
46116
}

0 commit comments

Comments
 (0)