{"id":17005875,"url":"https://github.com/devatherock/simple-slack","last_synced_at":"2025-03-23T17:31:18.391Z","repository":{"id":53503116,"uuid":"258490886","full_name":"devatherock/simple-slack","owner":"devatherock","description":"CI plugin to post messages to slack","archived":false,"fork":false,"pushed_at":"2025-03-10T12:26:29.000Z","size":160,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T22:28:10.145Z","etag":null,"topics":["ci","ci-plugin","circleci","drone","drone-ci","drone-plugin","plugin","slack","vela"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devatherock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2020-04-24T11:16:45.000Z","updated_at":"2025-03-10T12:26:31.000Z","dependencies_parsed_at":"2023-12-30T01:53:11.332Z","dependency_job_id":"3270176b-b8f9-4e29-8713-62ea404e4769","html_url":"https://github.com/devatherock/simple-slack","commit_stats":{"total_commits":115,"total_committers":4,"mean_commits":28.75,"dds":0.3826086956521739,"last_synced_commit":"2d184fa33035cada16804eff7dc29e00e7d378be"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fsimple-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fsimple-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fsimple-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fsimple-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devatherock","download_url":"https://codeload.github.com/devatherock/simple-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140989,"owners_count":20567485,"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":["ci","ci-plugin","circleci","drone","drone-ci","drone-plugin","plugin","slack","vela"],"created_at":"2024-10-14T05:04:22.967Z","updated_at":"2025-03-23T17:31:17.867Z","avatar_url":"https://github.com/devatherock.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/devatherock/simple-slack.svg?style=svg)](https://circleci.com/gh/devatherock/simple-slack)\n[![Version](https://img.shields.io/docker/v/devatherock/simple-slack?sort=semver)](https://hub.docker.com/r/devatherock/simple-slack/)\n[![Coverage Status](https://coveralls.io/repos/github/devatherock/simple-slack/badge.svg?branch=master)](https://coveralls.io/github/devatherock/simple-slack?branch=master)\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=simple-slack\u0026metric=alert_status)](https://sonarcloud.io/component_measures?id=simple-slack\u0026metric=alert_status\u0026view=list)\n[![Docker Pulls](https://img.shields.io/docker/pulls/devatherock/simple-slack.svg)](https://hub.docker.com/r/devatherock/simple-slack/)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=simple-slack\u0026metric=ncloc)](https://sonarcloud.io/component_measures?id=simple-slack\u0026metric=ncloc)\n[![Docker Image Size](https://img.shields.io/docker/image-size/devatherock/simple-slack.svg?sort=date)](https://hub.docker.com/r/devatherock/simple-slack/)\n# simple-slack\nCI plugin to post messages to [Slack](https://slack.com/) or other chat clients with Slack compatible incoming webhooks like [Rocket.Chat](https://rocket.chat/)\n\n## Config\n\nThe following parameters/secrets can be set to configure the plugin.\n\n### Parameters\n* **color** - Color in which the message block will be highlighted.\n* **text** - The message content. The text uses go templating. Any environment variable available at runtime can be used within the text, after converting it to camel case. For example, to use the environment variable `DRONE_BUILD_STATUS`, the syntax will be `{{.DroneBuildStatus}}`\n\n### Secrets\n\nThe following secret values can be set to configure the plugin.\n\n* **SLACK_WEBHOOK** - The slack webhook to post the message to\n\n## Usage\n\n### Docker:\nExecute from the working directory:\n\n```\ndocker run --rm \\\n  -e SLACK_WEBHOOK=https://hooks.slack.com/services/... \\\n  -e PARAMETER_COLOR=#33ad7f \\\n  -e PARAMETER_TEXT=\"Success: {{.BuildLink}} ({{.BuildRef}}) by {{.BuildAuthor}}\" \\\n  -e PARAMETER_CHANNEL=\"xyz\" \\\n  -e PARAMETER_TITLE=\"Build completed\" \\\n  -e BUILD_REF=\"refs/heads/master\" \\\n  -e BUILD_AUTHOR=octocat \\\n  -e BUILD_LINK=http://github.com/octocat/hello-world \\\n  devatherock/simple-slack:latest\n```\n\n### Drone:\n\n```yaml\npipeline:\n  notify_slack:\n    when:\n      event: [ push ]\n      status: [ success, failure, error ]\n    image: devatherock/simple-slack:latest\n    secrets: [ slack_webhook ]\n    settings:\n      color: \"#33ad7f\"\n      text: |-\n        {{.DroneBuildStatus}} {{.DroneBuildLink}} ({{.DroneCommitRef}}) by {{DroneCommitAuthor}}\n        {{.DroneCommitMessage}}\n```\n\n### Vela:\n\n```yaml\nsteps:\n  - name: notify_slack\n    ruleset:\n      event: [ push ]\n      status: [ success ]\n    image: devatherock/simple-slack:latest\n    secrets: [ slack_webhook ]\n    parameters:\n      color: \"#33ad7f\"\n      text: |-\n        Success: {{.BuildLink}} ({{.BuildRef}}) by {{.BuildAuthor}}\n        {{.BuildMessage}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatherock%2Fsimple-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevatherock%2Fsimple-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatherock%2Fsimple-slack/lists"}