Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobe4/gh-pr-repl
https://github.com/nobe4/gh-pr-repl
gh-extension
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nobe4/gh-pr-repl
- Owner: nobe4
- License: unlicense
- Created: 2021-09-23T07:59:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T14:53:13.000Z (almost 3 years ago)
- Last Synced: 2024-12-15T15:52:52.450Z (2 months 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_