Command line tool for creating pull requests on CodeCommit
npm install sme-create-prTrello card ➡️ CodeCommit Pull Request ➡️ Slack message
```
npm install --global sme-create-pr
Create a create-pr.json file in your home directory.
` json`
{
"trello": {
"appKey": "....",
"userToken": "....",
"boards": {
"sprint": "D2quJQE7",
"bugs": "k7zvcnbs"
}
},
"codeCommit": {
"region": "eu-west-1",
"remote": "origin",
"targetBranch": "developers"
},
"slack": {
"token": "....",
"channel": "pull-requests"
}
}
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).
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.
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.` json
{
"codeCommit": {
"targetBranch": "master"
}
}
``