Print PR URL summary at end of submit and view (#50)#125
Open
SajidBashar wants to merge 1 commit into
Open
Conversation
Add print_pr_summary(), which prints a plain, copy-pasteable list of the stack's PR URLs after `submit` and `view`. Entries without a PR are skipped, and nothing is printed when the stack has no PRs (e.g. `view` before the stack has been exported). The summary is printed unconditionally rather than behind --show-tips, since the PR URLs are core output rather than a usage hint. Closes modular#50.
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.
Closes #50.
After
submit/view, the stack table shows PR numbers (clickable only with--hyperlinks), but there's no plain, copy-pasteable list of PR URLs. This adds aprint_pr_summary()that prints one at the end of both commands.viewbefore the stack has been exported).print_stack(top of stack first).--show-tips, since PR URLs are core output rather than a usage hint. Happy to gate it behind--show-tipsif you'd prefer — it's a one-line move.Test plan
pytest(17 passed),ruff check, andruff format --checkall pass locally.