Provide a simple REPL for the selected PRs.
You'd need this if PRs are part of your workflow and you dislike pointing and clicking.
$ gh extension install nobe4/gh-pr-repl
- Ruby
pbcopy
open
tmux
With a single branch:
$ gh pr-repl
# Will use the PR associated with the current branch.
$ gh pr-repl cli/cli/demo-branch
# Will use the PR associated with https://github.com/cli/cli/tree/demo-branch
$ gh pr-repl https://github.com/cli/cli/pull/1
# Will use https://github.com/cli/cli/pull/1
With many branches:
$ gh pr-repl cli/cli/demo-branch https://github.com/cli/cli/pull/1
# Will use the PR associated with https://github.com/cli/cli/tree/demo-branch
# and https://github.com/cli/cli/pull/1
Getting assistance:
$ gh pr-repl
cli/cli/demobranch > h
# shows the help
Some ideas:
- Adding formatting checks in an action.
- Adding contribution guide.
- Adding specs.
- Removing
pbcopy
dependency. - Removing
tmux
dependency. - Having a better way to define commands, i.e. not in
@@commands
and as methods later. - Add more