{"id":31523313,"url":"https://github.com/wlatanowicz/simple-slack-send","last_synced_at":"2026-05-18T19:08:33.549Z","repository":{"id":62592021,"uuid":"499796736","full_name":"wlatanowicz/simple-slack-send","owner":"wlatanowicz","description":"Easily send slack messages in your CI pipelines","archived":false,"fork":false,"pushed_at":"2022-06-27T12:28:36.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T11:59:27.439Z","etag":null,"topics":["ci","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wlatanowicz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-04T10:43:23.000Z","updated_at":"2022-06-07T19:10:48.000Z","dependencies_parsed_at":"2022-11-04T07:21:22.189Z","dependency_job_id":null,"html_url":"https://github.com/wlatanowicz/simple-slack-send","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wlatanowicz/simple-slack-send","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlatanowicz%2Fsimple-slack-send","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlatanowicz%2Fsimple-slack-send/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlatanowicz%2Fsimple-slack-send/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlatanowicz%2Fsimple-slack-send/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlatanowicz","download_url":"https://codeload.github.com/wlatanowicz/simple-slack-send/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlatanowicz%2Fsimple-slack-send/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278189081,"owners_count":25945081,"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-03T02:00:06.070Z","response_time":53,"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":["ci","slack"],"created_at":"2025-10-03T16:15:18.018Z","updated_at":"2025-10-03T16:15:22.870Z","avatar_url":"https://github.com/wlatanowicz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Slack Send - easily send slack messages in your CI pipelines\n===\n\nSimple Slack Send is designed to push templated slack notifications from you CI pipelines using Slack's incoming webhooks.\n\nTemplate engine\n---\n\nSimple Slack Send uses [Jinja2](https://palletsprojects.com/p/jinja/) under the hood to produce Slack messages in JSON format. You can use any expression (values, includes, conditions, loops etc.) that is allowed by Jinja.\nIf the rendering engine's output is empty, no message is sent.\n\nParameter sources\n---\n\nJinja templates are fed with values from multiple sources given as command arguments:\n\n1. env files with key-value pairs ie. `-e production.env` or `--env-file=staging.env`\n2. json files ie. `-j terraform-output.json` or `--env-file=infrastructure.json`\n3. key-value pairs provided as command arguments ie. `-v env_name=jupiter` or `--var instance_type=small`\n4. system environment - turned on/off with `--sys-env`/`--no-sys-env` option; on by default\n\n\nConfiguration\n---\n\nYou can pass Slack's webhook url by settings `SLACK_WEBHOOK_URL` env variable or using `--webhook-url` argument.\n\n\nExample usage\n===\n\nmessage.json.tpl:\n```\n{% if BITBUCKET_EXIT_CODE == \"0\" %}\n{\n  \"blocks\": [\n    {\n      \"type\": \"section\",\n      \"text\": {\n        \"type\": \"mrkdwn\",\n        \"text\": \":large_green_circle: Commit {{ BITBUCKET_COMMIT }} built successfully.\"\n      }\n    }\n  ]\n}\n{% else %}\n{\n  \"blocks\": [\n    {\n      \"type\": \"section\",\n      \"text\": {\n        \"type\": \"mrkdwn\",\n        \"text\": \":red_circle: Commit {{ BITBUCKET_COMMIT }} failed to build. Visit \u003chttps://bitbucket.org/{{ BITBUCKET_REPO_FULL_NAME }}/pipelines/results/{{ BITBUCKET_BUILD_NUMBER }}|pipeline\u003e for details.\"\n      }\n    }\n  ]\n}\n{% endif %}\n```\n\n```\nsimple-slack-send message.json.tpl\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlatanowicz%2Fsimple-slack-send","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlatanowicz%2Fsimple-slack-send","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlatanowicz%2Fsimple-slack-send/lists"}