Set of automation tasks for liam.
Due to the liam
s architecture, you need to install peer dependencies. You can do this manually or use npm-install-peers
by simply calling npx npm-install-peers
. (since npm@5.2.0
).
NOTE: you don't have to use liam
if you want to use those tasks - each of those is separate function with all required dependencies being injected during execution.
Tasks in those repository shouldn't be repository/product specific.
They can be HC specific though (for example, link to base link to JIRA might be hardcoded).
Usage
With liam
(recommended)
See example in liam
's repository. Just import/require
required tasks from @holidaycheck/liam-tasks/tasks/[task-name]
;
Without liam
(not-recommneded)
Just require
specific task and pass required arguments:
const task = require('@holidaycheck/liam-tasks/tasks/add-jira-link')
const githubClient = require('github')({ ... })
const logger = console;
githubClient.authenticate({
type: "token",
token: '..',
});
task(logger, { githubClient })
What tasks are currently implemented?