create-pr
Trello card
➡️ CodeCommit Pull Request
➡️ Slack message
Install
npm install --global sme-create-pr
Create a create-pr.json
file in your home directory.
Get the Trello app key from the admin and your user token at this url.
Generate a Slack token from this url. Scroll down to Legacy token generator
(you must be signed in).
Usage
In the project directory run sme-create-pr
. You must follow a specific naming conventions for Git branches in order for this to work. That is developerName/sprint|bug/trelloCardNumber
.
Per-project configuration
You can create another create-pr.json
file in your project directory, with configurations you want to override.
For instance, let's assume you globally merge PRs into developers
branch but for one specific project you need to merge PRs into the master
branch. Then you create a create-pr.json
file in your project directory with the following content.