{"id":28970051,"url":"https://github.com/netcentric/cm-notify","last_synced_at":"2026-02-26T05:19:14.032Z","repository":{"id":289324862,"uuid":"967294183","full_name":"Netcentric/cm-notify","owner":"Netcentric","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-27T16:17:16.000Z","size":697,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-09-14T16:28:07.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Netcentric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-16T08:27:45.000Z","updated_at":"2025-04-27T16:17:18.000Z","dependencies_parsed_at":"2025-04-22T18:41:32.176Z","dependency_job_id":"059f8594-d3cb-40ab-99c0-13385c7cff66","html_url":"https://github.com/Netcentric/cm-notify","commit_stats":null,"previous_names":["netcentric/cm-notify"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Netcentric/cm-notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fcm-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fcm-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fcm-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fcm-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Netcentric","download_url":"https://codeload.github.com/Netcentric/cm-notify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netcentric%2Fcm-notify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009393,"owners_count":26084580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-24T10:14:58.195Z","updated_at":"2025-10-11T23:33:47.721Z","avatar_url":"https://github.com/Netcentric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cm-notify\n[![Version](https://img.shields.io/npm/v/@netcentric/cm-notify.svg)](https://npmjs.org/package/@netcentric/cm-notify)\n[![Release Status](https://github.com/Netcentric/cm-notify-core/actions/workflows/release.yml/badge.svg)](https://github.com/Netcentric/cm-notify-core/actions/workflows/release.yml)\n[![CodeQL Analysis](https://github.com/netcentric/cm-notify/workflows/CodeQL/badge.svg?branch=main)](https://github.com/netcentric/cm-notify/actions)\n[![semver: semantic-release](https://img.shields.io/badge/semver-semantic--release-blue.svg)](https://github.com/semantic-release/semantic-release)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nCloud Manager Notify is a Node.js application that listens for Cloud Manager events and sends notifications to Slack and Microsoft Teams.\n\n# Installation\n- Global installation:\n```\nnpm i -g @netcentric/cm-notify\n```\n- Local installation:\n```\nnpm i @netcentric/cm-notify\n```\n\n# Usage\n- If installed globally:\n```\ncm-notify [COMMAND]\n```\n- If installed locally:\n```\n./node_modules/.bin/cm-notify [COMMAND]\n```\n- Usage as a library:\n```javascript\nconst {\n  startApp,\n  startNgrok,\n  setupGoogle,\n  setupAdobe\n} = require('@netcentric/cm-notify');\n\nstartApp();\n````\n\n## Commands\n\n- `start:app` - Start the application server to listen for Cloud Manager events\n- `start:ngrok` - Start ngrok\n- `setup:adobe` - Setup Adobe Cloud Manager pipelines data\n- `setup:google` - Setup Google Auth Token\n- `test` - Post test event to the local webhook\n\n# Setup\n\n## Environment Variables\n- Create a `.env` file in the root folder with the following variables:\n\nMinimal required envs:\n```\n# Cloud Manager envs\nORGANIZATION_NAME=orgname# used to build the URL for the Pipeline\n# Messanger apps env\nSLACK_WEBHOOK=webhook_url\n```\nAll envs:\n```\n# Cloud Manager envs\nORGANIZATION_NAME=orgname# used to build the URL for the Pipeline\nCLIENT_ID=e231#used to validate CM event\n# Messanger apps env\nSLACK_WEBHOOK=https://hooks.slack.com/services/123\n# Teams webhook URL\nTEAMS_WEBHOOK=https://prod-123.westus.logic.azure.com:443/workflows/123\n# Teams email, alternative approach, if Webhook is disabled\nTEAMS_EMAIL=email.onmicrosoft.com@amer.teams.ms\n# Email sender env\n# Only needed if Teams email approach is used\nEMAIL_FROM=gmailuser@googleworkspacedomain.com\n# App env (optional)\nPORT=4000# port to run the application, default is 4000\nDATA_PATH=./.data# path to the data folder wher tokens are stored, default is ./.data\n# Ngrok env (optional)\n# Only needed if ngrok is used for local testing\nNGROK_AUTHTOKEN=123\nNGROK_DOMAIN=domain-name.ngrok-free.app\n```\n\n## Cloud Manager Webhook\n\n1. Go to https://developer.adobe.com/console\n2. Create a new project\n3. Add Events to the project\n4. Select `Cloud Manager Events`\n5. Configure Webhook URL as `this-application-URL/webhook`.\n\n- Optional: For local testing, you can use ngrok to expose your local server to the internet.\n- Optional: For exploring the events in developer console, you need to add `OAuth credentials` and `I/O Management API`\n\n## Cloud Manager pipelines data (optional)\n\n- Only needed for more details about the pipeline.\n\n1. Get a Cloud Manager list of pipelines\n2. Generate valid Cloud Manager list of pipelines\n- Details in the [ADOBE.md](docs/setup/ADOBE.md) file.\n\n## Google Auth Token (optional)\n\n- Only needed if you want to send notifications via email.\n\n1. Get Google Auth Credentials\n2. Generate Google Auth Token\n- Details in the [GMAIL.md](docs/setup/GMAIL.md) file.\n\n# Testing\n\n1. Setup testing slack/teams channel\n2. Configure `.env` file\n3. Add `.data` files\n4. Setup Google and Adobe files\n5. Start the application:\n```\ncm-notify start:app\n```\n6. Post a test event to the local webhook\n```\ncm-notify test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcentric%2Fcm-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetcentric%2Fcm-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcentric%2Fcm-notify/lists"}