Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.27 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.27 KB

gh-pr-repl

GitHub-Cli extension.

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.

Installation

$ gh extension install nobe4/gh-pr-repl

Requirements

  • Ruby
  • pbcopy
  • open
  • tmux

Usage

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

Development and contributing

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