-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
924 lines (924 loc) · 35.1 KB
/
Copy pathpackage.json
File metadata and controls
924 lines (924 loc) · 35.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
{
"name": "git-smart-checkout",
"author": "Valentyn Radchuk <zaknafeyn@gmail.com>",
"displayName": "Git smart checkout",
"description": "Git checkout with automatic stash",
"publisher": "vradchuk",
"repository": {
"type": "git",
"url": "git+https://github.com/zaknafeyn/git-smart-checkout"
},
"homepage": "https://git-smart-checkout.vradchuk.info",
"keywords": [
"git",
"checkout",
"stash",
"auto stash",
"pull request",
"PR",
"pr clone",
"clone pull request"
],
"license": "MIT",
"version": "0.19.5",
"icon": "resources/icon-512.png",
"engines": {
"vscode": "^1.74.0",
"node": ">=16.x"
},
"categories": [
"Other"
],
"extensionDependencies": [
"vscode.git"
],
"activationEvents": [
"onStartupFinished",
"workspaceContains:.git"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "git-smart-checkout",
"title": "Git Smart Checkout",
"icon": "resources/dark/clone.svg"
}
]
},
"views": {
"git-smart-checkout": [
{
"id": "git-smart-checkout.worktrees",
"name": "Worktrees",
"type": "tree",
"icon": "$(repo)",
"when": "git-smart-checkout.hasRepository"
},
{
"id": "git-smart-checkout.stacks",
"name": "Stacks",
"type": "webview",
"icon": "$(layers)",
"when": "git-smart-checkout.hasRepository"
},
{
"id": "git-smart-checkout.stashes",
"name": "Stashes",
"type": "tree",
"icon": "$(archive)",
"when": "git-smart-checkout.hasRepository"
},
{
"id": "git-smart-checkout.prClone",
"name": "PR Clone",
"type": "webview",
"icon": "$(git-pull-request)",
"when": "git-smart-checkout.showPrClone"
},
{
"id": "git-smart-checkout.prCommits",
"name": "Commits to Cherry-pick",
"type": "webview",
"icon": "$(git-commit)",
"when": "git-smart-checkout.showPrCommits"
}
]
},
"commands": [
{
"command": "git-smart-checkout.checkoutTo",
"title": "Checkout to... (With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.checkoutPrevious",
"title": "Checkout Previous Branch (With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.stacks.refresh",
"title": "Refresh Stacks",
"category": "GSC",
"icon": "$(refresh)"
},
{
"command": "git-smart-checkout.copyBranchName",
"title": "Copy Current Branch Name to Clipboard",
"category": "GSC"
},
{
"command": "git-smart-checkout.pullWithStash",
"title": "Pull (With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.pullRebaseWithStash",
"title": "Pull (Rebase With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.switchMode",
"title": "Switch Mode...",
"category": "GSC"
},
{
"command": "git-smart-checkout.showStatusBarMenu",
"title": "Quick Actions...",
"category": "GSC"
},
{
"command": "git-smart-checkout.openSettings",
"title": "Open Settings",
"category": "GSC"
},
{
"command": "git-smart-checkout.clonePullRequest",
"title": "Clone Pull Request...",
"category": "GSC",
"icon": {
"light": "resources/light/clone.svg",
"dark": "resources/dark/clone.svg"
}
},
{
"command": "git-smart-checkout.prCancelCloneMenu",
"title": "Cancel PR Clone",
"category": "GSC",
"icon": {
"light": "resources/light/revert.svg",
"dark": "resources/dark/revert.svg"
}
},
{
"command": "git-smart-checkout.prConflictsResolvedMenu",
"title": "Conflicts Resolved",
"category": "GSC",
"icon": {
"light": "resources/light/forward.svg",
"dark": "resources/dark/forward.svg"
}
},
{
"command": "git-smart-checkout.rebaseWithStash",
"title": "Rebase (With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.createTagFromTemplate",
"title": "Create Tag from Template...",
"category": "GSC"
},
{
"command": "git-smart-checkout.createBranchFromTemplate",
"title": "Create Branch from Template...",
"category": "GSC"
},
{
"command": "git-smart-checkout.previewTemplate",
"title": "Preview Branch/Tag Template...",
"category": "GSC"
},
{
"command": "git-smart-checkout.initJira",
"title": "Init Jira...",
"category": "GSC"
},
{
"command": "git-smart-checkout.setJiraToken",
"title": "Set Jira Token...",
"category": "GSC"
},
{
"command": "git-smart-checkout.checkoutByPR",
"title": "Checkout by PR Number... (With Stash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.prReviewInWorktree",
"title": "PR Review in Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.reviewPrByNumber",
"title": "Review PR by Number...",
"category": "GSC"
},
{
"command": "git-smart-checkout.removePRReviewInWorktree",
"title": "Remove PR Review in Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.moveToNewWorktree",
"title": "Move to New Worktree...",
"icon": "$(new-folder)",
"category": "GSC"
},
{
"command": "git-smart-checkout.copyStagedChangesToWorktree",
"title": "Copy Staged Changes to Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.copyWipChangesToWorktree",
"title": "Copy WIP Changes to Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.copyWipChangesFromWorktree",
"title": "Copy WIP from Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.moveWipChangesFromWorktree",
"title": "Move WIP from Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.removeWorktree",
"title": "Remove Worktree...",
"category": "GSC"
},
{
"command": "git-smart-checkout.removeMultipleWorktrees",
"title": "Remove Multiple Worktrees...",
"icon": "$(trash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.pruneWorktrees",
"title": "Prune Worktrees...",
"icon": "$(clear-all)",
"category": "GSC"
},
{
"command": "git-smart-checkout.openWorktreeDevTerminal",
"title": "Open Worktree Dev Terminal...",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.open",
"title": "Open Worktree in New Window",
"icon": "$(folder-opened)",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.terminal",
"title": "Open Dev Terminal",
"icon": "$(terminal)",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.copyWip",
"title": "Copy WIP Here",
"icon": "$(git-commit)",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.remove",
"title": "Remove Worktree",
"icon": "$(trash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.removeGone",
"title": "Remove (branch merged/deleted upstream)",
"icon": "$(trash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.addToWorkspace",
"title": "Add to Workspace",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.copyPath",
"title": "Copy Path",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.reveal",
"title": "Reveal in Finder/Explorer",
"category": "GSC"
},
{
"command": "git-smart-checkout.worktree.refresh",
"title": "Refresh Worktrees",
"icon": "$(refresh)",
"category": "GSC"
},
{
"command": "git-smart-checkout.manageAutoStashes",
"title": "Manage Auto-Stashes...",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.apply",
"title": "Apply",
"icon": "$(git-stash-apply)",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.pop",
"title": "Pop",
"icon": "$(git-stash-pop)",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.drop",
"title": "Drop",
"icon": "$(trash)",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.viewPatch",
"title": "View Full Patch",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.createBranch",
"title": "Create Branch from Stash...",
"category": "GSC"
},
{
"command": "git-smart-checkout.stash.copyMessage",
"title": "Copy Message",
"category": "GSC"
},
{
"command": "git-smart-checkout.stashes.refresh",
"title": "Refresh Stashes",
"icon": "$(refresh)",
"category": "GSC"
},
{
"command": "git-smart-checkout.cleanupBranches",
"title": "Delete Merged Branches...",
"category": "GSC"
}
],
"menus": {
"view/item/context": [
{
"command": "git-smart-checkout.worktree.open",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/",
"group": "inline@1"
},
{
"command": "git-smart-checkout.worktree.terminal",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/",
"group": "inline@2"
},
{
"command": "git-smart-checkout.worktree.copyWip",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/ && viewItem =~ /\\blinked\\b/",
"group": "inline@3"
},
{
"command": "git-smart-checkout.worktree.remove",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /^(?=.*\\bworktree\\b)(?=.*\\blinked\\b)(?!.*\\bgone\\b).*$/",
"group": "inline@4"
},
{
"command": "git-smart-checkout.worktree.removeGone",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /^(?=.*\\bworktree\\b)(?=.*\\blinked\\b)(?=.*\\bgone\\b).*$/",
"group": "inline@4"
},
{
"command": "git-smart-checkout.worktree.addToWorkspace",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/",
"group": "7_modification@1"
},
{
"command": "git-smart-checkout.worktree.copyPath",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/",
"group": "7_modification@2"
},
{
"command": "git-smart-checkout.worktree.reveal",
"when": "view == git-smart-checkout.worktrees && viewItem =~ /\\bworktree\\b/",
"group": "7_modification@3"
},
{
"command": "git-smart-checkout.stash.apply",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "inline@1"
},
{
"command": "git-smart-checkout.stash.pop",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "inline@2"
},
{
"command": "git-smart-checkout.stash.drop",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "inline@3"
},
{
"command": "git-smart-checkout.stash.viewPatch",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "7_modification@1"
},
{
"command": "git-smart-checkout.stash.createBranch",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "7_modification@2"
},
{
"command": "git-smart-checkout.stash.copyMessage",
"when": "view == git-smart-checkout.stashes && viewItem == stash",
"group": "7_modification@3"
}
],
"view/title": [
{
"command": "git-smart-checkout.moveToNewWorktree",
"when": "view == git-smart-checkout.worktrees",
"group": "navigation@1"
},
{
"command": "git-smart-checkout.removeMultipleWorktrees",
"when": "view == git-smart-checkout.worktrees && git-smart-checkout.hasMultipleRemovableWorktrees",
"group": "navigation@2"
},
{
"command": "git-smart-checkout.pruneWorktrees",
"when": "view == git-smart-checkout.worktrees",
"group": "navigation@3"
},
{
"command": "git-smart-checkout.worktree.refresh",
"when": "view == git-smart-checkout.worktrees",
"group": "navigation@4"
},
{
"command": "git-smart-checkout.stacks.refresh",
"when": "view == git-smart-checkout.stacks",
"group": "navigation@1"
},
{
"command": "git-smart-checkout.stashes.refresh",
"when": "view == git-smart-checkout.stashes",
"group": "navigation@1"
},
{
"command": "git-smart-checkout.prCancelCloneMenu",
"when": "view == git-smart-checkout.prClone && git-smart-checkout.isCloning == true && git-smart-checkout.isConflict == true",
"group": "navigation"
},
{
"command": "git-smart-checkout.prConflictsResolvedMenu",
"when": "view == git-smart-checkout.prClone && git-smart-checkout.isCloning == true && git-smart-checkout.isConflict == true",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "git-smart-checkout.prCancelCloneMenu",
"when": "false"
},
{
"command": "git-smart-checkout.prConflictsResolvedMenu",
"when": "false"
},
{
"command": "git-smart-checkout.checkoutTo"
},
{
"command": "git-smart-checkout.checkoutPrevious"
},
{
"command": "git-smart-checkout.copyBranchName"
},
{
"command": "git-smart-checkout.pullWithStash"
},
{
"command": "git-smart-checkout.pullRebaseWithStash"
},
{
"command": "git-smart-checkout.clonePullRequest"
},
{
"command": "git-smart-checkout.rebaseWithStash"
},
{
"command": "git-smart-checkout.createTagFromTemplate"
},
{
"command": "git-smart-checkout.createBranchFromTemplate",
"when": "git-smart-checkout.canCreateBranchFromTemplate"
},
{
"command": "git-smart-checkout.previewTemplate",
"when": "git-smart-checkout.canPreviewTemplate"
},
{
"command": "git-smart-checkout.initJira"
},
{
"command": "git-smart-checkout.setJiraToken"
},
{
"command": "git-smart-checkout.checkoutByPR"
},
{
"command": "git-smart-checkout.prReviewInWorktree"
},
{
"command": "git-smart-checkout.reviewPrByNumber"
},
{
"command": "git-smart-checkout.removePRReviewInWorktree"
},
{
"command": "git-smart-checkout.moveToNewWorktree"
},
{
"command": "git-smart-checkout.copyStagedChangesToWorktree"
},
{
"command": "git-smart-checkout.copyWipChangesToWorktree"
},
{
"command": "git-smart-checkout.copyWipChangesFromWorktree"
},
{
"command": "git-smart-checkout.moveWipChangesFromWorktree"
},
{
"command": "git-smart-checkout.removeWorktree"
},
{
"command": "git-smart-checkout.removeMultipleWorktrees",
"when": "git-smart-checkout.hasMultipleRemovableWorktrees"
},
{
"command": "git-smart-checkout.pruneWorktrees"
},
{
"command": "git-smart-checkout.openWorktreeDevTerminal"
},
{
"command": "git-smart-checkout.manageAutoStashes"
}
]
},
"configuration": {
"title": "Git Smart Checkout Settings",
"properties": {
"git-smart-checkout.mode": {
"type": "string",
"enum": [
"manual",
"autoStashForBranch",
"autoStashAndPop",
"autoStashAndApply"
],
"markdownEnumDescriptions": [
"Select mode manually at checkout",
"Auto stash in current branch",
"Auto stash and pop in new branch",
"Auto stash and apply in new branch"
],
"default": "manual",
"description": "Checkout stash mode"
},
"git-smart-checkout.logging.enabled": {
"type": "boolean",
"default": true,
"description": "Enable logging output"
},
"git-smart-checkout.useFastBranchList": {
"type": "boolean",
"default": true,
"description": "Use VS Code's cached git model for branch pickers, preload details for the first visible refs, and cache ref details for 48 hours. Disable to always build lists with a full 'git for-each-ref' scan."
},
"git-smart-checkout.recentBranchCount": {
"type": "number",
"default": 5,
"minimum": 0,
"description": "Number of recently checked-out branches shown in the checkout picker. Set to 0 to disable."
},
"git-smart-checkout.githubEnterpriseBaseUrl": {
"type": "string",
"default": "",
"description": "Base URL for GitHub Enterprise, for example https://ghe.example.com."
},
"git-smart-checkout.defaultRemote": {
"type": "string",
"default": "",
"description": "Preferred Git remote for fetch and push operations. Leave empty to select automatically."
},
"git-smart-checkout.showWhatsNew": {
"type": "string",
"enum": [
"minor",
"always",
"never"
],
"default": "minor",
"description": "Control the What's New notification after extension updates."
},
"git-smart-checkout.defaultTargetBranch": {
"type": "string",
"default": "main",
"description": "Default target branch for PR cloning. Leave empty to use the original PR's base branch."
},
"git-smart-checkout.defaultWorktreeDirectory": {
"type": "string",
"default": "",
"description": "Base directory where 'Move to new worktree' and 'PR Review in Worktree' create worktrees. Supports ~ expansion. Leave empty to use the repository's parent directory."
},
"git-smart-checkout.prClone.checkoutAfterClone": {
"type": "string",
"enum": [
"ask",
"always",
"never"
],
"default": "ask",
"description": "Choose whether to stay on or switch to the branch created by PR Clone."
},
"git-smart-checkout.worktreeSetup.copyFiles": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Glob patterns for untracked or ignored local files to copy into new worktrees. Workspace values should be treated like tasks."
},
"git-smart-checkout.worktreeSetup.command": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Shell command to run in new worktrees after creation. Runs with shell privileges; workspace values should be treated like tasks."
},
"git-smart-checkout.worktreeSetup.applyToPrCloneWorktrees": {
"type": "boolean",
"default": false,
"description": "Apply worktree setup to short-lived PR clone worktrees."
},
"git-smart-checkout.prBranchPrefix": {
"type": "string",
"default": "",
"description": "Prefix to add to PR clone branch names. If specified and doesn't end with trailing slash, it will be automatically added."
},
"git-smart-checkout.showStatusBar": {
"type": "boolean",
"default": true,
"description": "Show the extension's status bar item"
},
"git-smart-checkout.useInPlaceCherryPick": {
"type": "boolean",
"default": true,
"markdownDescription": "PR clone strategy. **Enabled (default):** cherry-pick in the current working tree — your changes are auto-stashed, and merge conflicts can be resolved interactively. **Disabled:** cherry-pick in a temporary worktree — your working tree is never touched, but the clone fails if any commit conflicts."
},
"git-smart-checkout.pullAfterCheckout": {
"type": "string",
"enum": [
"off",
"ffOnly",
"pull"
],
"markdownEnumDescriptions": [
"Never pull after checkout",
"Fast-forward only (`git pull --ff-only`), never creates merge commits",
"Full pull (may create a merge commit)"
],
"default": "ffOnly",
"description": "After checking out a branch with an upstream: 'off' — never pull; 'ffOnly' — fast-forward only (git pull --ff-only, never creates merge commits); 'pull' — full pull."
},
"git-smart-checkout.preferredRefs": {
"type": "object",
"default": {},
"markdownDescription": "Per-user map of preferred refs by repository. Keys are `<owner>/<repo>` (GitHub) or workspace folder name; values include arrays: locals, remotes, tags (stored as full refnames like `refs/heads/<name>`, `refs/remotes/<remote>/<name>`, `refs/tags/<name>`)."
},
"git-smart-checkout.tagTemplates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name shown when picking a tag template."
},
"template": {
"type": "string",
"markdownDescription": "Template used to generate Git tag names. Supports tokens: `{f:<file>:<json-path>}`, `{b:<regex>}`, `{r:<start-number>[:<separator>]}`, `{s:<script>}` (stdout) or `{s:stderr:<script>}`.\n\nThe `{r}` token is an optional uniqueness suffix: it is dropped when the tag built without it is free, otherwise it appends `<separator><start-number>` and increments until the name is free.\n\nExample: `test-v{f:package.json:.version}-{b:\\b[A-Z]+-\\d{3,4}\\b}-{s:./test.sh}{r:1:-}`"
}
},
"required": [
"name",
"template"
],
"additionalProperties": false
},
"default": [],
"markdownDescription": "Named tag templates. When more than one is configured, **GSC: Create Tag from Template ...** shows a picker (search by name or by the generated value); a single template skips the picker. Each entry is `{ \"name\": \"...\", \"template\": \"...\" }`.\n\nExample: `[{ \"name\": \"Release\", \"template\": \"v{f:package.json:.version}{r:1:-}\" }]`"
},
"git-smart-checkout.branchTemplates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name shown when picking a branch template."
},
"template": {
"type": "string",
"markdownDescription": "Template used to generate Git branch names. Supports tokens: `{jira-key}`, `{jira-title[:limit[:separator]]}`, `{f:<file>:<json-path>}`, `{b:<regex>}`, `{r:<start-number>[:<separator>]}`, `{s:<script>}`.\n\nExample: `vradchuk/{jira-key}-{jira-title:25:-}{r:1:-}`."
}
},
"required": [
"name",
"template"
],
"additionalProperties": false
},
"default": [],
"markdownDescription": "Named branch templates. When more than one is configured, **GSC: Create Branch from Template ...** shows a picker (search by name or by the generated value); a single template skips the picker. Each entry is `{ \"name\": \"...\", \"template\": \"...\" }`.\n\nExample: `[{ \"name\": \"Feature\", \"template\": \"vradchuk/{jira-key}-{jira-title:25:-}{r:1:-}\" }]`"
},
"git-smart-checkout.tagTemplate": {
"type": "string",
"default": "",
"markdownDescription": "Template used to generate Git tag names. Supports tokens: `{f:<file>:<json-path>}`, `{b:<regex>}`, `{r:<start-number>[:<separator>]}`, `{s:<script>}` (stdout) or `{s:stderr:<script>}`.\n\nThe `{r}` token is an optional uniqueness suffix: it is dropped when the tag built without it is free, otherwise it appends `<separator><start-number>` and increments until the name is free.\n\nExample: `test-v{f:package.json:.version}-{b:\\b[A-Z]+-\\d{3,4}\\b}-{s:./test.sh}{r:1:-}`",
"markdownDeprecationMessage": "Deprecated: use `git-smart-checkout.tagTemplates` (named templates) instead. This setting still works as a fallback but will be removed in a future release."
},
"git-smart-checkout.branchTemplate": {
"type": "string",
"default": "",
"markdownDescription": "Template used to generate Git branch names when running **Create Branch from Template ...**. Supports tokens: `{jira-key}`, `{jira-title[:limit[:separator]]}`, `{f:<file>:<json-path>}`, `{b:<regex>}`, `{r:<start-number>[:<separator>]}`, `{s:<script>}`.\n\nExample: `vradchuk/{jira-key}-{jira-title:25:-}{r:1:-}` — fetches a Jira issue, uppercases the key (e.g. `KEY-123`), slugifies the title (max 25 chars, `-` separator), and adds `{r:1:-}` only if the branch already exists (appending `-1`, `-2`, … until free). The resolved name is lowercased except the Jira key.",
"markdownDeprecationMessage": "Deprecated: use `git-smart-checkout.branchTemplates` (named templates) instead. This setting still works as a fallback but will be removed in a future release."
},
"git-smart-checkout.jira.domain": {
"type": "string",
"default": "",
"description": "Jira Cloud host (e.g. your-company.atlassian.net). Required when the branch template uses Jira tokens."
},
"git-smart-checkout.jira.username": {
"type": "string",
"default": "",
"description": "Atlassian account username for Jira API authentication (usually the email address of your Atlassian account)."
},
"git-smart-checkout.jira.email": {
"type": "string",
"default": "",
"description": "Deprecated Jira account email used for API authentication.",
"deprecationMessage": "Use git-smart-checkout.jira.username instead. This setting remains as a compatibility fallback."
},
"git-smart-checkout.jira.token": {
"type": "string",
"default": "",
"markdownDescription": "Jira API token. **Stored in plaintext — use the `GSC: Set Jira token` command instead**, which keeps the token in VS Code Secret Storage.\n\nAny value set here is automatically migrated into Secret Storage and cleared on the next activation.\n\nCreate a token at [Atlassian API tokens](https://id.atlassian.com/manage-profile/security/api-tokens). **Unscoped token (recommended):** choose **Create API token** (classic/unscoped). It uses your Jira permissions and works with `https://<domain>.atlassian.net` — no scopes to select. **Scoped token (optional):** grant at least `read:jira-work`, `read:jira-user`, `read:issue-details:jira`, `read:project:jira`.",
"deprecationMessage": "Use the \"GSC: Set Jira token\" command instead. This setting stores the token in plaintext (and may be synced via Settings Sync); any value is migrated to Secret Storage and cleared automatically."
},
"git-smart-checkout.jira.projectKeys": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Limit the Jira issue picker to issues from these project keys. For example, `[\"KEY\", \"HOME\"]` shows only issues from those projects (e.g. `KEY-123`, `HOME-341`). Leave empty to show all issues assigned to you."
},
"git-smart-checkout.jira.customJql": {
"type": "string",
"default": "",
"markdownDescription": "Raw JQL used to populate the Jira issue picker. When set, it **replaces** the assignee/project/status filters chosen from the picker's filter button (`ORDER BY created DESC` is appended automatically if your query has no `ORDER BY`). Example: `project = KEY AND issuetype = Epic`. Leave empty to use the in-picker filters."
},
"git-smart-checkout.pushTagWithoutConfirmation": {
"type": "boolean",
"default": false,
"description": "Automatically push the created Git tag to the remote without asking for confirmation."
},
"git-smart-checkout.tagRemote": {
"type": "string",
"default": "origin",
"description": "Git remote used when pushing created tags."
},
"git-smart-checkout.telemetry.enabled": {
"type": "boolean",
"default": true,
"description": "Enable anonymous telemetry for Git Smart Checkout analytics (respect VS Code's global telemetry settings). This helps improve the extension and never collects personal information."
},
"git-smart-checkout.stacks.enabled": {
"type": "boolean",
"default": true,
"description": "Detect and visualize the current branch's GitHub-native PR stack (Stacks view and status bar indicator)."
},
"git-smart-checkout.cleanupBranches.detectSquashMerged": {
"type": "boolean",
"default": true,
"description": "When deleting merged branches, also detect squash- or rebase-merged branches (via patch equivalence, and via GitHub PR state when available) that 'git branch --merged' can't see."
},
"git-smart-checkout.stashes.staleAfterDays": {
"type": "number",
"default": 7,
"minimum": 0,
"description": "Flag a stash as stale in the Stashes view once it's older than this many days. Set to 0 to disable staleness."
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn package",
"compile": "yarn check-types && yarn lint && node esbuild.mjs",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.mjs --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "yarn check-types && yarn lint && node esbuild.mjs --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"build-tests": "yarn compile && yarn compile-tests",
"check-types": "tsc --noEmit",
"check-types-webview": "tsc --noEmit --project tsconfig.webview.json",
"lint": "eslint src --ext ts",
"test": "yarn build-tests && vscode-test --label unit",
"test:e2e": "yarn build-tests && vscode-test --label e2e-manual",
"test:e2e:manual": "yarn build-tests && vscode-test --label e2e-manual",
"test:e2e:ci": "yarn build-tests && mkdir -p test-results && xvfb-run -a vscode-test --label e2e-ci",
"test:e2e:heavy": "yarn build-tests && vscode-test --label e2e-heavy",
"test:e2e:heavy:ci": "yarn build-tests && mkdir -p test-results && xvfb-run -a vscode-test --label e2e-heavy",
"test:unit": "yarn build-tests && vscode-test --label unit",
"build-vsix": "yarn package && vsce package --yarn",
"build-vsix-dev": "yarn compile && vsce package --yarn --no-dependencies",
"publish": "yarn package && vsce publish --yarn",
"build-webview": "webpack --mode production --config webpack.webview.config.js",
"watch-webview": "webpack --mode development --config webpack.webview.config.js --watch",
"serve-webview": "webpack serve --mode development --config webpack.webview.config.js",
"dev": "npm-run-all -p watch:esbuild serve-webview",
"build-all": "yarn check-types && yarn check-types-webview && yarn build-webview && yarn package",
"semantic-release": "semantic-release"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^30.0.0",
"@types/jira-client": "^7.1.9",
"@types/jsdom": "^28.0.3",
"@types/markdown-it": "^14.1.2",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/vscode": "1.74.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^2.15.0",
"css-loader": "^6.8.1",
"esbuild": "^0.28.1",
"eslint": "^9.25.1",
"glob": "^12.0.0",
"html-webpack-plugin": "^5.5.3",
"jsdom": "^29.1.1",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "^10.1.0",
"mocha-junit-reporter": "^2.2.1",
"npm-run-all": "^4.1.5",
"ovsx": "^0.10.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^24.2.3",
"style-loader": "^3.3.3",
"ts-loader": "^9.4.4",
"tslib": "^2.0.0",
"typescript": "^5.4.5",
"webpack": "^5.104.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.6"
},
"dependencies": {
"classnames": "^2.5.1",
"date-fns": "^4.1.0",
"dompurify": "^3.4.13",
"jira-client": "^8.2.2",
"markdown-it": "^14.2.0",
"markdown-it-task-lists": "^2.1.1",
"posthog-node": "^5.33.0"
},
"resolutions": {
"serialize-javascript": "7.0.5",
"uuid": ">=11.1.1",
"qs": "^6.15.2",
"@vscode/vsce/markdown-it": "14.2.0",
"postcss": "^8.5.18",
"tar": "^7.5.18",
"shell-quote": "^1.9.0",
"js-yaml": "^4.3.1",
"eslint/**/brace-expansion": "^1.1.16",
"mocha/**/brace-expansion": "^2.1.2",
"glob/**/brace-expansion": "^5.0.7",
"@typescript-eslint/parser/**/brace-expansion": "^5.0.7",
"ovsx/**/brace-expansion": "^5.0.7",
"semantic-release/**/brace-expansion": "^5.0.7",
"fast-uri": "^3.1.7",
"sigstore": "^4.1.1",
"@sigstore/core": "^3.2.1"
}
}