{"id":50734085,"url":"https://github.com/semrels/hook-slack","last_synced_at":"2026-06-10T12:00:43.945Z","repository":{"id":360164101,"uuid":"1248959973","full_name":"SemRels/hook-slack","owner":"SemRels","description":"Slack notifications hook for SemRel","archived":false,"fork":false,"pushed_at":"2026-06-03T10:33:08.000Z","size":80,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T12:13:38.611Z","etag":null,"topics":["ci-cd","devops","golang","hook","notifications","release-automation","semantic-release","semrel","slack","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/SemRels.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS.md","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T08:01:12.000Z","updated_at":"2026-06-03T10:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SemRels/hook-slack","commit_stats":null,"previous_names":["semrels/hook-slack"],"tags_count":0,"template":false,"template_full_name":"SemRels/plugin-template","purl":"pkg:github/SemRels/hook-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemRels%2Fhook-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemRels%2Fhook-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemRels%2Fhook-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemRels%2Fhook-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SemRels","download_url":"https://codeload.github.com/SemRels/hook-slack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemRels%2Fhook-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34151276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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-cd","devops","golang","hook","notifications","release-automation","semantic-release","semrel","slack","webhook"],"created_at":"2026-06-10T12:00:26.016Z","updated_at":"2026-06-10T12:00:43.930Z","avatar_url":"https://github.com/SemRels.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hook-slack\n\nPosts a release announcement to Slack using an incoming webhook.\n\nThis plugin is distributed as the standalone Go binary `semrel-plugin-hook-slack`. Semrel executes the binary as a subprocess, provides plugin configuration through `SEMREL_PLUGIN_*` environment variables, provides release context through `SEMREL_*` environment variables, reads standard output, and treats exit code `0` as success and any non-zero exit code as failure. Install the binary in `~/.semrel/plugins/` or anywhere on your `$PATH`.\n\n## Installation\n\n```bash\ngo install github.com/SemRels/hook-slack/cmd/plugin@latest\n```\n\n## Configuration\n\n```yaml\nplugins:\n  - name: hook-slack\n    path: ~/.semrel/plugins/semrel-plugin-hook-slack\n    env:\n      SEMREL_PLUGIN_WEBHOOK_URL: \"https://hooks.slack.com/services/xxx/yyy/zzz\"\n      SEMREL_PLUGIN_CHANNEL: \"#releases\"\n      SEMREL_PLUGIN_USERNAME: \"semrel\"\n      SEMREL_PLUGIN_ICON_EMOJI: \":rocket:\"\n      SEMREL_PLUGIN_MAX_RETRIES: \"3\"\n      SEMREL_PLUGIN_RETRY_DELAY: \"2s\"\n```\n\n## `SEMREL_PLUGIN_*` variables\n\n| Name | Required | Description | Default |\n| --- | --- | --- | --- |\n| `SEMREL_PLUGIN_WEBHOOK_URL` | Required | Slack incoming webhook URL. | None |\n| `SEMREL_PLUGIN_CHANNEL` | Optional | Slack channel override for the message. | Webhook default |\n| `SEMREL_PLUGIN_USERNAME` | Optional | Display name for the webhook sender. | `semrel` |\n| `SEMREL_PLUGIN_ICON_EMOJI` | Optional | Emoji icon for the webhook sender. | `:rocket:` |\n| `SEMREL_PLUGIN_MAX_RETRIES` | Optional | Retries on transient network failures and HTTP 5xx responses. | `3` |\n| `SEMREL_PLUGIN_RETRY_DELAY` | Optional | Delay between retry attempts. | `2s` |\n\n## Retry behavior\n\nThe plugin retries transient failures caused by network errors or HTTP `5xx` responses. HTTP `2xx` and `4xx` responses are not retried. Each retry attempt is logged to standard error.\n\n## `SEMREL_*` release context used\n\n| Variable | Description |\n| --- | --- |\n| `SEMREL_VERSION` | Resolved release version for the current run. |\n| `SEMREL_TAG_NAME` | Git tag name semrel will create or publish. |\n| `SEMREL_NEXT_VERSION` | Next version computed by semrel for the release. |\n| `SEMREL_CHANGELOG` | Generated changelog text for the release. |\n| `SEMREL_DRY_RUN` | Whether semrel is running in dry-run mode. |\n\n## Example behavior\n\nThe plugin sends a formatted Slack message with the release tag and changelog summary. In dry-run mode it prints the payload instead of calling the webhook.\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemrels%2Fhook-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemrels%2Fhook-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemrels%2Fhook-slack/lists"}