jeeves-pr-stack
jeeves-pr-stack is a plugin for jeeves that helps manage stacks of GitHub pull requests. It aims to simplify the code review process by organizing pull requests that depend on each other.
Installation
poetry add --group dev jeeves-pr-stack
Motivation
While pull requests are a powerful tool for code review, they tend to become larger and larger, and thus more difficult for the reviewer to tackle.
One possible way to resolve that is to split implementation of a feature into two or more pull requests. For instance,
- PR
#42Backend for the Super Feature directed fromsuper-feature-backendbranch tomainbranch, - and PR
#43Frontend for the Super Feature directed fromsuper-feature-frontendbranch tosuper-feature-backendbranch.
The PRs are written in such a way that the first of them can be independently merged to main and deployed without breaking the system. This makes the process of code review faster and easier, and allows to deploy more often.
Let's call such structures PR Stacks.
Caveats
Managing PR Stacks manually can be tedious; for instance, every time when changing #42 you need to rebase #43. It becomes particularly annoying when the length of the stack is more than 2.
jeeves-pr-stack comes to the rescue.
Commands
j stack
View the current PR Stack.
j stack push
- Create a new PR in current branch if none exists, or use the one that is there,
- And set the base branch of this PR to point to another open PR in the repository, stacking one PR on top of another.
j stack pop
- Fetch the bottom-most PR of current stack,
- Merge it into the repository main branch,
- Redirect the follow-up PR to point to the main branch so as to make it mergeable,
- And delete the branch of the PR that was merged.
Metadata
Release files for jeeves-pr-stack 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jeeves_pr_stack-0.1.8.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jeeves_pr_stack-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / jeeves_pr_stack-0.1.8.tar.gz
| Download URL | jeeves_pr_stack-0.1.8.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
113304ae0fc44458f1a8110c31fa34b0a27bbf7dc27178ff308eb7c137592946
|
|
BLAKE2b-256 checksum How to use checksums |
1c2a6a462796d0ed75d62c5e3933260bdce7432148888f6522129780e6db147f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Linux/6.8.0-100-generic
|
Release files / jeeves_pr_stack-0.1.8-py3-none-any.whl
| Download URL | jeeves_pr_stack-0.1.8-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9d74944207aae13139436d2ae9580f2eb8fe2828019949ef9ede2db01e870b4
|
|
BLAKE2b-256 checksum How to use checksums |
206bfbc9bb0af9d45296d5058bdc4852b470dec42fb29e6cfa3df8e1934ee41f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Linux/6.8.0-100-generic
|