@enapter/teams-reporter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Enapter Teams Reporter

Requirements

  • Node.js 16+
  • Microsoft Teams Incoming Webhook address. How to get it?

Install

npm i --save-dev @enapter/teams-reporter
yarn add -D @enapter/teams-reporter

This package should be listed inside devDependencies in package.json.

How To Use

// template – message template function
// data – message content data

reportToTeams(<template>, <data>)
import { reportToTeams, SimpleReportCard } from 'zmnv-teams-reporter-test';

reportToTeams(SimpleReportCard, {
    environment: 'release',
    title: 'Awesome Build',
    message: 'This build consists awesome changes',
    projectVersion: '7.77.7',
    authorName: 'Saint Paul Lorale',

    potentialActionTitle: 'Open',
    potentialActionUrl: 'https://enapter.com',
});

Templates

Useful Links

Simple variant of data presentation. See sources.

This template uses CI_* environment variables to describe a meta info like the last commit hash, branch name, author and etc. Tested with Gitlab CI. See sources.

You can easily create your own template as function. See Create Custom Template Instructions.

Package Sidebar

Install

npm i @enapter/teams-reporter

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

329 kB

Total Files

20

Last publish

Collaborators

  • zmnv
  • enapteruser