git-stack-cli 0.2.1
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.
- package/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/__fixtures__/metadata.js +763 -0
- package/dist/__fixtures__/metadata.json +186 -0
- package/dist/app/App.js +30 -0
- package/dist/app/ArgCheck.js +21 -0
- package/dist/app/Await.js +45 -0
- package/dist/app/Brackets.js +10 -0
- package/dist/app/Counter.js +19 -0
- package/dist/app/Debug.js +31 -0
- package/dist/app/DependencyCheck.js +52 -0
- package/dist/app/Exit.js +14 -0
- package/dist/app/GatherMetadata copy.js +54 -0
- package/dist/app/GatherMetadata.js +54 -0
- package/dist/app/GithubApiError.js +49 -0
- package/dist/app/InitMetadata.js +14 -0
- package/dist/app/KeepAlive.js +11 -0
- package/dist/app/Main copy.js +200 -0
- package/dist/app/ManualRebase.js +126 -0
- package/dist/app/MultiSelect copy.js +76 -0
- package/dist/app/MultiSelect.js +136 -0
- package/dist/app/Output.js +9 -0
- package/dist/app/Parens copy.js +9 -0
- package/dist/app/Parens.js +9 -0
- package/dist/app/PostRebaseStatus copy.js +23 -0
- package/dist/app/PostRebaseStatus.js +23 -0
- package/dist/app/PreSelectCommitRanges copy.js +29 -0
- package/dist/app/PreSelectCommitRanges.js +11 -0
- package/dist/app/SelectCommitRange.js +1 -0
- package/dist/app/SelectCommitRanges.js +182 -0
- package/dist/app/Status copy.js +46 -0
- package/dist/app/Status.js +45 -0
- package/dist/app/StatusTable.js +94 -0
- package/dist/app/Store.js +73 -0
- package/dist/app/Waterfall.js +20 -0
- package/dist/app/YesNoPrompt copy.js +24 -0
- package/dist/app/YesNoPrompt.js +23 -0
- package/dist/app/main.js +31 -0
- package/dist/cli.js +9 -0
- package/dist/command.js +22 -0
- package/dist/core/CommitMetadata.js +143 -0
- package/dist/core/Metadata.js +36 -0
- package/dist/core/ZustandStore.js +23 -0
- package/dist/core/assertNever.js +4 -0
- package/dist/core/cache.js +39 -0
- package/dist/core/capitalize.js +5 -0
- package/dist/core/clamp.js +6 -0
- package/dist/core/cli copy.js +44 -0
- package/dist/core/cli.js +44 -0
- package/dist/core/color.js +83 -0
- package/dist/core/date.js +18 -0
- package/dist/core/dependency_check.js +27 -0
- package/dist/core/exit.js +4 -0
- package/dist/core/get_commit_metadata.js +61 -0
- package/dist/core/github.js +45 -0
- package/dist/core/invariant.js +5 -0
- package/dist/core/is_command_available.js +15 -0
- package/dist/core/json.js +35 -0
- package/dist/core/match_group.js +9 -0
- package/dist/core/serialize_json.js +17 -0
- package/dist/core/sleep.js +3 -0
- package/dist/core/wrap_index.js +10 -0
- package/dist/index.js +13 -0
- package/dist/main copy.js +266 -0
- package/dist/main.backup.js +266 -0
- package/dist/main.js +265 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Noah Jorgensen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# git-stack-cli
|
|
2
|
+
|
|
3
|
+
## install
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i -g git-stack-cli
|
|
7
|
+
|
|
8
|
+
git stack
|
|
9
|
+
git multi-diff
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## development
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm run dev
|
|
16
|
+
npm link
|
|
17
|
+
|
|
18
|
+
git stack
|
|
19
|
+
git multi-diff
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## TODO
|
|
24
|
+
|
|
25
|
+
- select commit ranges
|
|
26
|
+
- capture PR title when creating new group
|
|
27
|
+
|
|
28
|
+
- display PR status table (new, outdated, etc.) after sync
|
|
29
|
+
|
|
30
|
+
- ManualRebase
|
|
31
|
+
- set nice PR title and summary (diff stack table)
|
|
32
|
+
|
|
33
|
+
- build table of stacked PRs to add to each PR as comment
|
|
34
|
+
- order based on local sha ordering (i.e. group_list, which reflects PR order)
|
|
35
|
+
- delete and update comment in pr if necessary (use regex)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- interactive PR status table
|
|
39
|
+
- ▶ Unassigned (8 commits)
|
|
40
|
+
- ▶ #764 Title B (2/3 commits) https://github.com/...
|
|
41
|
+
- ▶ #742 Title A (5/5 commits) https://github.com/...
|
|
42
|
+
|
|
43
|
+
- `folder: { on: '▼', off: '▶' },`
|
|
44
|
+
- the first local row shows new commits not synced to any PR
|
|
45
|
+
- (2/3 commits) means 3 commits locally and 2 commits in remote (mismatch)
|
|
46
|
+
- focus + enter toggles the list open to view each commit
|
|
47
|
+
- when expanded
|
|
48
|
+
- each commit should also show status, e.g. new commits should show with NEW
|
|
49
|
+
- show actions, e.g. Shift+D -> Delete
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
- multiselect with more items than terminal rows needs pagination
|
|
53
|
+
- maybe default to window size of about 10 and display a scrollbar to indicate more items in either direction?
|
|
54
|
+
- allow typing to filder the list based on regex match?
|
|
55
|
+
- quicksearch may be similar or at least inspo
|
|
56
|
+
- https://github.com/Eximchain/ink-quicksearch-input
|
|
57
|
+
|
|
58
|
+
## names
|
|
59
|
+
|
|
60
|
+
- stack
|
|
61
|
+
- prs
|
|
62
|
+
- batch
|
|
63
|
+
- cake
|
|
64
|
+
- pancake
|
|
65
|
+
- bake
|
|
66
|
+
- pile
|
|
67
|
+
- ladder
|
|
68
|
+
- steps
|
|
69
|
+
- stairs
|
|
70
|
+
- chain
|