Forest Admin DevOps Tools
Slack Token
You can create a token by following this link https://api.slack.com/custom-integrations/legacy-tokens.
How to?
Release
This process will:
- merge
devel
into master
(if necessary), - add a specific tag (if necessary).
require('dotenv').config();
import { ReleaseManager } from '@forestadmin/devops';
const OPTIONS = { withVersion: true };
new ReleaseManager(OPTIONS).create();
Arguments:
options
:
withVersion
: Boolean. True if project has version.
Send a release note
Sends a note of the changes released to a specific Slack channel.
require('dotenv').config();
import { ReleaseNoteManager } from '@forestadmin/devops';
const { DEVOPS_SLACK_TOKEN, DEVOPS_SLACK_CHANNEL } = process.env;
const OPTIONS = { releaseIcon: '🌱', withVersion: true };
new ReleaseNoteManager(DEVOPS_SLACK_TOKEN, DEVOPS_SLACK_CHANNEL, OPTIONS).create();
Arguments:
Update the coverage badge
This process will update the coverage badge in the README.md
file base on the lcov
coverage report.
import { CoverageManager } from '@forestadmin/devops';
new CoverageManager().updateBadge();