bstack 0.0.0 → 0.1.0
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/README.md +26 -5
- package/dist/bstack.js +717 -0
- package/package.json +15 -10
- package/src/checkout.ts +0 -67
- package/src/cli.ts +0 -100
- package/src/command.ts +0 -61
- package/src/git.ts +0 -197
- package/src/github.ts +0 -187
- package/src/identity.ts +0 -88
- package/src/model.ts +0 -44
- package/src/reporter.ts +0 -11
- package/src/state.ts +0 -52
- package/src/sync.ts +0 -251
package/README.md
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
# bstack
|
|
2
2
|
|
|
3
|
-
`bstack` turns a series of commits
|
|
3
|
+
`bstack` turns a series of commits on a local branch into native GitHub stacked pull requests.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
-
Requirements:
|
|
7
|
+
Requirements:
|
|
8
|
+
|
|
9
|
+
- Node.js 20+
|
|
10
|
+
- `gh cli` plus the `github/gh-stack` extension (authenticated)
|
|
8
11
|
|
|
9
12
|
```bash
|
|
10
13
|
gh extension install github/gh-stack
|
|
11
|
-
|
|
14
|
+
npm install bstack -g
|
|
12
15
|
```
|
|
13
16
|
|
|
14
17
|
## Use
|
|
@@ -17,8 +20,8 @@ Create one commit per reviewable change, then publish the stack:
|
|
|
17
20
|
|
|
18
21
|
```bash
|
|
19
22
|
git switch -c my-feature
|
|
20
|
-
git commit -am "
|
|
21
|
-
git commit -am "
|
|
23
|
+
git commit -am "feat: add the model"
|
|
24
|
+
git commit -am "feat: add the API"
|
|
22
25
|
bstack
|
|
23
26
|
```
|
|
24
27
|
|
|
@@ -34,3 +37,21 @@ bstack checkout https://github.com/owner/repo/pull/123
|
|
|
34
37
|
The first publish adds a stable `Bstack-Id` trailer to each commit and rewrites their hashes. The working tree must be clean. Merge commits and signed commits that need trailers are not supported.
|
|
35
38
|
|
|
36
39
|
Use `--dry-run` to inspect without publishing and `--quiet` to hide progress logs.
|
|
40
|
+
|
|
41
|
+
## Develop
|
|
42
|
+
|
|
43
|
+
Install dependencies and run the checks with pnpm:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pnpm install
|
|
47
|
+
pnpm run type-check
|
|
48
|
+
pnpm test
|
|
49
|
+
pnpm run lint
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Build the Node.js CLI with tsdown:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pnpm run build
|
|
56
|
+
node dist/bstack.js --help
|
|
57
|
+
```
|