Crates.io | pr_buddy |
lib.rs | pr_buddy |
version | 3.0.1 |
source | src |
created_at | 2023-05-13 18:05:36.980607 |
updated_at | 2023-05-13 18:51:47.143888 |
description | CLI tool to open a PR/merge request and automatically post the link to your communication service |
homepage | https://github.com/MitchWijt/prBuddy |
repository | https://github.com/MitchWijt/prBuddy |
max_upload_size | |
id | 863845 |
size | 1,365,379 |
This small convenient CLI is made so that you don't have to go through the daily hassle any more of continuously. copying PR titles and URLs but have this done for you with one single command :-)
run the following command to install with homebrew:
brew tap MitchWijt/prbuddy && brew install prbuddy
run the following command to install with cargo:
cargo install pr_buddy
cargo build --release
./target/release
prBuddy uses multiple config variables in order to work correctly.
Make sure to export these in your machine, for example in the .zshrc
file.
Currently we support both GitHub and GitLab:
GitHub:
PB_SLACK_WEBHOOK_URL=<YOUR WEBHOOK URL>
PB_GITHUB_KEY=<GITHUB PERSONAL ACCESS TOKEN>
GitLab:
PB_SLACK_WEBHOOK_URL=<YOUR WEBHOOK URL>
PB_GITLAB_KEY=<GITHUB PERSONAL ACCESS TOKEN>
Using Discord instead of Slack? No problemo!
Just swap the PB_SLACK_WEBHOOK_URL
for the PB_DISCORD_WEBHOOK_URL
:
PB_DISCORD_WEBHOOK_URL=<YOUR WEBHOOK URL>
pr_buddy push-pr <PR_TITLE>
pr_buddy push-pr <PR_TITLE> <PR_DESCRIPTION>
pr_buddy push-pr --no-publish <PR_TITLE> <PR_DESCRIPTION>
You're all set :-) Happy coding!