Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds GitHub PR creation, tracking, listing, and browser integration to dig.
This pull request introduces comprehensive support for GitHub pull request (PR) management directly within the
digCLI, allowing users to create, adopt, view, and list tracked PRs for their branches. The changes update the documentation, CLI interface, core data structures, and rendering logic to integrate PR tracking into the workflow, including annotating branches in the stack tree with PR numbers.The most important changes include:
GitHub Pull Request Integration:
dig prcommand to the CLI, enabling users to create or adopt a GitHub PR for the current tracked branch, open the PR in the browser, or list all tracked open PRs in stack order. This is implemented in the newsrc/cli/pr/mod.rsmodule, which handles argument parsing, command execution, and output formatting.README.mdwith detailed documentation and usage examples for the new PR commands, including how PRs are tracked and displayed. [1] [2] [3]CLI and Rendering Updates:
src/cli/mod.rsto include the newprsubcommand and its argument structure. [1] [2] [3]src/cli/tree/render.rsto annotate branches with their associated PR numbers (e.g.,feat/auth (#42)), including updates to test cases to verify correct rendering. [1] [2] [3] [4]Core Data Structure Changes:
pull_requestfield in branch tracking metadata, enabling persistent association between branches and their PRs. [1] [2] [3] [4]BranchPushTargetstruct insrc/core/git.rsto encapsulate remote push target information, supporting the PR creation workflow.