@hero-design/snowflake-guard
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@hero-design/snowflake-guard

A GitHub App built with Probot that analyzes PR changes and reports snowflake usage of Hero Design components.

Setup

  1. Copy .env.example to .env and asks Andromeda team for variable details.
cp .env.example .env
  1. Set up internal-tool-integrations service for the bot to store report.
  • Replace DB_HOST with the host of the internal-tool-integrations service.
  • Use the same SNOWFLAKE_GUARD_SECRET as the one in the internal-tool-integrations service.

In case you don't want to store snowflake report, comment out the saving report section in src/index.ts.

  1. Install snowflake-guard[Dev] app to a repository that you wish to run the app on.

  2. Start internal-tool-integrations service.

  3. Start the bot.

# Install dependencies
yarn install

# Run the bot
yarn start
  1. Open or update a pull request to trigger webhook events.

Note

This bot does not support hot-reload yet, please restart the app once you make any changes to the code.

Package Sidebar

Install

npm i @hero-design/snowflake-guard

Homepage

github.com//

Weekly Downloads

143

Version

1.2.0

License

ISC

Unpacked Size

103 kB

Total Files

39

Last publish

Collaborators

  • haudao-eh
  • ttkien_eh
  • ehrocks-dev