trello-task
The Trello Task library
Instalation:
Using yarn:
$ yarn add @vobi-io/trello-task husky
Using npm:
$ npm i -S @vobi-io/trello-task husky
Usage :
// @task refactor function
Using keyword this package will create task on trello after you commit and push your changes
![trello image](https://camo.githubusercontent.com/8554d168058098ede644d5a32a6df4d774f862bbb8818fb4eef1f67739646c12/68747470733a2f2f692e6962622e636f2f64474e793167742f53637265656e73686f742d66726f6d2d323031392d31312d30352d31372d34332d30302e706e67)
Extra Featueres:
// @task refactor function @due 11/29/2019
Using keyword @due with following date formate MM/DD/YYYY you can also set deadlines
![trello image](https://camo.githubusercontent.com/dde0f30906a5428a9daba18fb31da2dfb4e19c4cce0ecf1072b1706048c8cb33/68747470733a2f2f692e6962622e636f2f426331536d736e2f7472656c6c6f2e706e67)
Configuration :
Create file in your project root directory for example trello.js
// trello.js
const task = require('@vobi-io/trello-task')
const configuration = {
key: \* Trello api key *\,
token: \* Trello api token *\,
lists: [
{ keyWord: '@task', idList: \* Id of list on trello you want your tasks to be created *\ },
{ keyWord: '@major', idList: \* Id of list on trello you want your tasks to be created *\ }
]
};
/*
lists in configuration will search for keyword you specify
and create task in specified list
*/
task(configuration)
// you can choose any keyword you want
Inside your package.json add this configuration
// package.json
"husky": {
"hooks": {
"pre-push": "node trello.js" // name of file you configured
}
}
You are all done after you push your commits to git this package will look for keyword and create task for you on trello