https://github.com/nobe4/gh-pr-repl
https://github.com/nobe4/gh-pr-repl
gh-extension
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nobe4/gh-pr-repl
- Owner: nobe4
- License: unlicense
- Created: 2021-09-23T07:59:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T14:53:13.000Z (over 4 years ago)
- Last Synced: 2025-02-08T12:13:51.937Z (over 1 year ago)
- Topics: gh-extension
- Language: Ruby
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gh-pr-repl
==========
[GitHub-Cli extension](https://cli.github.com/manual/gh_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
```shell
$ gh extension install nobe4/gh-pr-repl
```
## Requirements
- Ruby
- `pbcopy`
- `open`
- `tmux`
# Usage
With a single branch:
```shell
$ 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:
```shell
$ 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:
```shell
$ 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_