{"id":20598727,"url":"https://github.com/torosent/teams-notify","last_synced_at":"2025-04-15T00:24:10.719Z","repository":{"id":53868706,"uuid":"118639166","full_name":"torosent/teams-notify","owner":"torosent","description":"A Dockerized tool for sending messages to Microsoft Teams channels","archived":false,"fork":false,"pushed_at":"2018-02-25T10:36:53.000Z","size":6,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:21:13.180Z","etag":null,"topics":["brigade","microsoft-teams","slack","teams","webhook"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torosent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-23T16:44:31.000Z","updated_at":"2024-11-24T23:59:55.000Z","dependencies_parsed_at":"2022-09-05T01:41:12.008Z","dependency_job_id":null,"html_url":"https://github.com/torosent/teams-notify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torosent%2Fteams-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torosent%2Fteams-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torosent%2Fteams-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torosent%2Fteams-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torosent","download_url":"https://codeload.github.com/torosent/teams-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248982288,"owners_count":21193378,"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","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":["brigade","microsoft-teams","slack","teams","webhook"],"created_at":"2024-11-16T08:28:09.244Z","updated_at":"2025-04-15T00:24:10.692Z","avatar_url":"https://github.com/torosent.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Teams-Notify\n\n:star: Forked from: `https://github.com/technosophos/slack-notify`\n\nTeams-Notify is a very simple tool for sending a Microsoft Teams notification via a\nTeams Incoming Webhook.\n\nIt is designed to function as a 12-factor app, receiving configuration via\nenvironment variables. To keep things simple, it is rigid in what it allows you\nto set. \n\n## Teams Incoming Webhooks\n\nThis tool uses [Teams Incoming Webhooks](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors)\nto send a message to your teams channel.\n\nBefore you can use this tool, you need to log into Microsoft Teams and configure\nthis.\n\n## Usage\n\nRunning `teams-notify` in a shell prompt goes like this:\n\n```console\n$ export TEAMS_WEBHOOK=https://outlook.office.com/webhook/Txxxxxx/IncomingWebhook/Bxxxxxx/xxxxxxxx\n$ TEAMS_MESSAGE=\"hello\" teams-notify\n```\n\nRunning the Docker container goes like this:\n\n```console\n$ export TEAMS_WEBHOOK=https://outlook.office.com/webhook/Txxxxxx/IncomingWebhook/Bxxxxxx/xxxxxxxx\n$ docker run -e TEAMS_WEBHOOK=$TEAMS_WEBHOOK -e TEAMS_MESSAGE=\"hello\" torosent/teams-notify\n```\n\n### In Brigade\n\nYou can easily use this inside of brigade hooks. Here is an example from\n[hello-helm](https://github.com/technosophos/hello-helm):\n\n\n```javascript\nconst {events, Job} = require(\"brigadier\")\n\nevents.on(\"imagePush\", (e, p) =\u003e {\n\n  var teams = new Job(\"teams-notify\", \"torosent/teams-notify:latest\", [\"/teams-notify\"])\n\n  // This doesn't need access to storage, so skip mounting to speed things up.\n  teams.storage.enabled = false\n  teams.env = {\n    // It's best to store the teams webhook URL in a project's secrets.\n    TEAMS_WEBHOOK: p.secrets.TEAMS_WEBHOOK,\n    TEAMS_TITLE: \"Message Title\",\n    TEAMS_MESSAGE: \"Message Body\",\n    TEAMS_COLOR: \"#0000ff\"\n  }\n  teams.run()\n})\n```\n\n\n\n## Environment Variables\n\n```shell\n# The Microsoft Teams self-assigned webhook\nTEAMS_WEBHOOK=https://outlook.office.com/webhook/Txxxxxx/IncomingWebhook/Bxxxxxx/xxxxxxxx\n\n# The title of the message\nTEAMS_TITLE=\"Hello World\"\n# The body of the message\nTEAMS_MESSAGE=\"Today is a fine day\"\n# RGB color to for message formatting. (Teams determines what is colored by this)\nTEAMS_COLOR=\"#efefef\"\n```\n\n## Build It\n\nConfigure:\n\n```\nmake bootstrap\n```\n\nCompile:\n\n```\nmake build\n```\n\nPublish to DockerHub\n\n```\nmake docker-build docker-push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorosent%2Fteams-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorosent%2Fteams-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorosent%2Fteams-notify/lists"}