git-stack-cli 0.3.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -54
  2. package/dist/__fixtures__/metadata.js +399 -475
  3. package/dist/app/App copy.js +30 -0
  4. package/dist/app/App.js +9 -3
  5. package/dist/app/AutoUpdate.js +147 -0
  6. package/dist/app/Debug.js +4 -4
  7. package/dist/app/FormatText.js +9 -0
  8. package/dist/app/GatherMetadata copy.js +33 -29
  9. package/dist/app/GatherMetadata.js +30 -39
  10. package/dist/app/Input.js +15 -0
  11. package/dist/app/LocalCommitStatus.js +42 -0
  12. package/dist/app/LocalMergeRebase.js +113 -0
  13. package/dist/app/ManualRebase copy.js +127 -0
  14. package/dist/app/ManualRebase.js +23 -12
  15. package/dist/app/MultiSelect.js +2 -2
  16. package/dist/app/NPMAutoUpdate.js +34 -0
  17. package/dist/app/Parens copy.js +1 -1
  18. package/dist/app/PreLocalMergeRebase.js +21 -0
  19. package/dist/app/PreSelectCommitRanges copy.js +15 -23
  20. package/dist/app/PreSelectCommitRanges.js +10 -0
  21. package/dist/app/Providers.js +5 -0
  22. package/dist/app/SelectCommitRanges.js +95 -82
  23. package/dist/app/Status.js +18 -3
  24. package/dist/app/StatusTable.js +35 -26
  25. package/dist/app/Store.js +32 -6
  26. package/dist/app/TextInput.js +37 -0
  27. package/dist/app/YesNoPrompt.js +19 -5
  28. package/dist/app/main.js +6 -0
  29. package/dist/command.js +15 -34
  30. package/dist/core/CommitMetadata.js +19 -5
  31. package/dist/core/Metadata.js +4 -3
  32. package/dist/core/cli.js +4 -0
  33. package/dist/core/github.js +26 -18
  34. package/dist/core/id.js +61 -0
  35. package/dist/core/readJson.js +3 -0
  36. package/dist/core/read_json.js +12 -0
  37. package/dist/core/safe_quote.js +9 -0
  38. package/dist/core/short_id.js +60 -0
  39. package/dist/core/sleep copy.js +3 -0
  40. package/package.json +3 -5
package/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # git-stack-cli
2
2
 
3
+ > create stacked diffs (PRs) on Github from a single branch by grouping commits
4
+
3
5
  ## install
4
6
 
5
7
  ```bash
6
8
  npm i -g git-stack-cli
7
9
 
8
10
  git stack
9
- git multi-diff
10
11
  ```
11
12
 
12
13
  ## development
@@ -16,57 +17,4 @@ npm run dev
16
17
  npm link
17
18
 
18
19
  git stack --debug
19
- git multi-diff --debug
20
20
  ```
21
-
22
-
23
- ## TODO
24
-
25
- - point value for querying all pr for user vs individual pr status (current)?
26
-
27
- - select commit ranges
28
- - capture PR title when creating new group
29
-
30
- - display PR status table (new, outdated, etc.) after sync
31
-
32
- - ManualRebase
33
- - set nice PR title and summary (diff stack table)
34
-
35
- - build table of stacked PRs to add to each PR as comment
36
- - order based on local sha ordering (i.e. group_list, which reflects PR order)
37
- - delete and update comment in pr if necessary (use regex)
38
-
39
-
40
- - interactive PR status table
41
- - ▶ Unassigned (8 commits)
42
- - ▶ #764 Title B (2/3 commits) https://github.com/...
43
- - ▶ #742 Title A (5/5 commits) https://github.com/...
44
-
45
- - `folder: { on: '▼', off: '▶' },`
46
- - the first local row shows new commits not synced to any PR
47
- - (2/3 commits) means 3 commits locally and 2 commits in remote (mismatch)
48
- - focus + enter toggles the list open to view each commit
49
- - when expanded
50
- - each commit should also show status, e.g. new commits should show with NEW
51
- - show actions, e.g. Shift+D -> Delete
52
-
53
-
54
- - multiselect with more items than terminal rows needs pagination
55
- - maybe default to window size of about 10 and display a scrollbar to indicate more items in either direction?
56
- - allow typing to filder the list based on regex match?
57
- - quicksearch may be similar or at least inspo
58
- - https://github.com/Eximchain/ink-quicksearch-input
59
-
60
- ## names
61
-
62
- - stack
63
- - prs
64
- - batch
65
- - cake
66
- - pancake
67
- - bake
68
- - pile
69
- - ladder
70
- - steps
71
- - stairs
72
- - chain