This is a work in progress project that aims to make dealing with Pull Request trains easier.
Don't expect too much of it in its initial stages. The code code is ugly and it's highly adapted to my personal use for a specific project.
pr-train -horpr-train --helpfor instructions on how to use it.
Just create a Pull Request. It's better to try to explain what it does, but that is not needed.
- Install GitHub CLI if you don't have it yet
- Clone the repo
cd && gh repo clone igorlvicente/update-pull-request-train-descriptions .update-pull-request-train-descriptions && cd -
- Add alias for your script
- Bash:
cat ~/.update-pull-request-train-descriptions/alias.sh >> .bashrc - Zsh:
cat ~/.update-pull-request-train-descriptions/alias.sh >> .zshrc
- Bash:
- Restart terminal and it is ready to use
cd ~/.update-pull-request-train-descriptions && git pull --ff-only && cd -
- Change
pr-trainto show only the Pull Request train of your current branch pr-train --allto show all Pull Request trainsThis is the current behaviour, but as we will change it to show only the PRs of the tree you are in, we will need the
--alloption- Turn script into a gem to be installed without the need to clone and change
PATHenvironment variable Create templates for the printing of each pull requestDoneExample:pr-train --template "Custom Template for [Pull Request]({{link}}) to {{base_branch}} on {{repo_name}}"
- Change
pr-trainto update pull request descriptions pr-train --dry-runto not update pull request descriptions and only print what would have been added to itThis is the current behaviour, but as we will change it to update the PRs, we will need the
--dry-runoption- Configurable default template/format