sme-create-pr

0.0.7 • Public • Published

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.

{
  "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).

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.

{
  "codeCommit": {
    "targetBranch": "master"
  }
}

Package Sidebar

Install

npm i sme-create-pr

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

34.3 kB

Total Files

19

Last publish

Collaborators

  • socialmediaemotions