$ yarn add @vobi-io/trello-task husky
$ npm i -S @vobi-io/trello-task husky
// @task refactor function
// @task refactor function @due 11/29/2019
// 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
// package.json
"husky": {
"hooks": {
"pre-push": "node trello.js" // name of file you configured
}
}