-
Notifications
You must be signed in to change notification settings - Fork 3
Stacks CLI prototype with core operations #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
de5a937
basic terminal setup
skarim 8ade8bc
stack init and add
skarim 2536e9a
view stack
skarim 775d0b3
navigation commands
skarim cc21c25
cascading rebase
skarim 58d1549
placeholders for checkout and merge
skarim ad9d170
push branches and create prs
skarim 86d342e
delete stack locally
skarim 157d87c
rename update to rebase
skarim f3db397
block init inside an existing stack
skarim b39609a
disambiguate for multiple stacks
skarim 3bf143c
collect feedback via discussions
skarim fdaa11f
updated storage format
skarim 25ff8a1
schema for storage format
skarim cf62538
sync state of prs in stack
skarim 2661ee7
sync command to fetch, rebase, and push
skarim f1421ad
rebase onto for handling squashed prs
skarim 03c4b92
enable git rerere
skarim 5937a75
addressing review comments
skarim d77d2fe
update readme
skarim c2a1106
show pr status in view
skarim 910b69c
force push with lease by default
skarim 9dc7980
output msgs nits
skarim 423f492
check if empty stack
skarim e4b0b6e
use cached pr info
skarim b9bfd86
init as empty slice
skarim 7767bb4
handle rebase restore failures
skarim 071748c
handle edges cases from review
skarim b7c15c1
interactive terminal ui for view
skarim d5305eb
improved handling of merged branches
skarim 9c8d2fb
block add to stack if all branches merged
skarim 07ea259
checkout for local stacks
skarim c1aa1f2
abbreviated workflow to quickly add to stacks
skarim c2ddf60
Add testable interfaces for git and github packages
skarim 50c8999
add basic tests
skarim 487f148
Fix workflow permissions warning
skarim 7d3ceb4
typo cleanup
skarim deed1ed
rm old if
skarim 10c3e1b
update description to reflect base as parent head sha
skarim 3a7700e
consistent merged check
skarim 1520353
skip interactive prompt if prefix and numbering is set
skarim 34eeac4
clean up duplicate msgs
skarim 49e05a0
interactive prompt or autogenerate for pr title
skarim d5903fe
hyperlinked PRs in output
skarim f3a797b
rebase lowest unmerged branch with tip of trunk
skarim 2879cfe
add links to downstack prs in body
skarim f66e95c
add sticky header to view tui
skarim a27a4f5
rename flag to --skip-prs
skarim 9d2a7cf
use multiline commit msgs for pr body
skarim 627832d
rm placeholders
skarim e874e26
push all branches atomically and resolve remotes
skarim 22fa202
shared loadStack helper for all cmds
skarim d22f0c3
clearer wording in navigate
skarim 7bb5ca2
move active branch indices to stack
skarim 7144d88
politely enable rerere and cache decline
skarim 47d1a3f
use full commit sha
skarim 5ea2ec8
clean up chained branches display
skarim 0a55e35
block adopting branches with existing PRs
skarim 24e18bd
Handle SIGINT gracefully during interactive prompts
skarim 426ad11
wrap example commands in quotes for non TTY
skarim 14364a2
waterfall pr lookup by url, number, branch name
skarim 50fdc33
support commit msg editor, update stage all flag to match git commit,…
skarim 1a1f49f
exit with nonzero status on error
skarim 6e9927d
rm update pr base logic, should all happen on server
skarim 2604976
exit codes by error type
skarim d6e6db7
json output mode for view
skarim 1304670
flag to specify remote and bypass interactive prompt
skarim 309e12a
skills file for agents
skarim 3058421
default to named branches, numbering is a flag set on init
skarim f03f9f3
fix: return early from sync on rebase conflict
skarim 0c27492
more test coverage and clean up
skarim 0869244
fix for help output properly showing "gh stack"
skarim b99f725
set release version via ldflags
skarim b53bc7a
mock gh api client for tests
skarim 0c08844
clean up go.mod
skarim d5fcf12
update gh-stack file schema
skarim b2ba2c2
throw error for non-numeric args
skarim c26f8b0
use correct var in error msg
skarim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-go@v6 | ||
| with: | ||
| go-version-file: go.mod | ||
| - name: Download dependencies | ||
| run: go mod download | ||
| - name: Vet | ||
| run: go vet ./... | ||
| - name: Test | ||
| run: go test -race -count=1 ./... | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.