node command line tool
git clone
repositorynpm install
npm i -g
- run
cpr
in your terminal - Follow the questions in terminal
To check if cpr tool is install in your global modules
npm ls -g --depth=0
!NOTE: First-time installation will ask you root set root folder for repositories. In order for tool to work properly, please consider the following folder tree in on your computer:
- root-folder/
- repository-1
- repository-2
- repository-n
Run cpr --reset
This command will remove previous configuration and will run the walkthrough again.
Tip: configuration is stored here
macOS: /Users/[YOUR-USERNME]/.config/configstore/cpr.json. Linux: /home/[YOUR-USERNME]/.config/configstore/cpr.json
Run rm -rf cpr.json
in order to hard reset cpr tool configuration
- Remote branch autocomplete instead of manual typing
- PR Title suggestion based on last commit in .git repository
- Branch suggestions based on CodeCommit Repository default branch value
- Branch suggestion based on current checked out local HEAD in repository
- Suggestion to build repository before making PR (works for both: npm and lerna monorepos). Build is optional but defaults to true for each repository.
- Copy PR urls to clipboard - you'll have all your ulrs and repository names in clipboard ready to get pasted in chat.