{"id":13625918,"url":"https://github.com/8398a7/action-slack","last_synced_at":"2025-05-14T15:07:29.289Z","repository":{"id":36064612,"uuid":"202563790","full_name":"8398a7/action-slack","owner":"8398a7","description":"Provides the function of slack notification to GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-03-28T13:31:56.000Z","size":6891,"stargazers_count":611,"open_issues_count":31,"forks_count":139,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T11:51:47.074Z","etag":null,"topics":["github-actions","slack","typescript"],"latest_commit_sha":null,"homepage":"https://action-slack.netlify.app/","language":"TypeScript","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/8398a7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"8398a7"}},"created_at":"2019-08-15T15:14:40.000Z","updated_at":"2025-05-12T04:12:16.000Z","dependencies_parsed_at":"2024-01-26T15:25:48.455Z","dependency_job_id":"23ffc740-1d8c-4582-892d-d745e0b6dfc3","html_url":"https://github.com/8398a7/action-slack","commit_stats":{"total_commits":415,"total_committers":25,"mean_commits":16.6,"dds":"0.22891566265060237","last_synced_commit":"2ec70cd71cdad39b465787568506fdbe1138c7f5"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Faction-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Faction-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Faction-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Faction-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8398a7","download_url":"https://codeload.github.com/8398a7/action-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169691,"owners_count":22026213,"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":["github-actions","slack","typescript"],"created_at":"2024-08-01T21:02:05.437Z","updated_at":"2025-05-14T15:07:29.267Z","avatar_url":"https://github.com/8398a7.png","language":"TypeScript","funding_links":["https://github.com/sponsors/8398a7"],"categories":["TypeScript"],"sub_categories":[],"readme":"# action-slack\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/a132b9a0-3a80-4938-afa6-2cad038a14a9/deploy-status)](https://app.netlify.com/sites/action-slack/deploys)\n![](https://github.com/8398a7/action-slack/workflows/test-build/badge.svg)\n![](https://github.com/8398a7/action-slack/workflows/Slack%20Mainline/badge.svg)\n![](https://img.shields.io/github/license/8398a7/action-slack?color=brightgreen)\n![](https://img.shields.io/github/v/release/8398a7/action-slack?color=brightgreen)\n[![codecov](https://codecov.io/gh/8398a7/action-slack/branch/master/graph/badge.svg)](https://codecov.io/gh/8398a7/action-slack)\n\n- [Document](https://action-slack.netlify.app)\n\n## Quick Start\n\nYou can learn more about it [here](https://action-slack.netlify.app/usecase/01-general).\n\n```yaml\nsteps:\n  - uses: 8398a7/action-slack@v3\n    with:\n      status: ${{ job.status }}\n      fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest # selectable (default: repo,message)\n    env:\n      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required\n    if: always() # Pick up events even if the job fails or is canceled.\n```\n\n\u003cimg width=\"495\" alt=\"success\" src=\"https://user-images.githubusercontent.com/8043276/84587112-64844800-ae57-11ea-8007-7ce83a91dae3.png\" /\u003e\n\n## Custom Formats of your choice\n\nYou can learn more about it [here](https://action-slack.netlify.app/usecase/02-custom).\n\n```yaml\nsteps:\n  - uses: 8398a7/action-slack@v3\n  with:\n    status: custom\n    fields: workflow,job,commit,repo,ref,author,took\n    custom_payload: |\n      {\n        attachments: [{\n          color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',\n          text: `${process.env.AS_WORKFLOW}\\n${process.env.AS_JOB} (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${process.env.AS_REF} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,\n        }]\n      }\n  env:\n    SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n  if: always() # Pick up events even if the job fails or is canceled.\n```\n\n\u003cimg width=\"501\" alt=\"custom\" src=\"https://user-images.githubusercontent.com/8043276/85949864-2b3df300-b994-11ea-9388-f4ff1aebc292.png\"\u003e\n\n## For GitHub Enterprise\n\n```yaml\nsteps:\n  - uses: 8398a7/action-slack@v3\n    with:\n      github_base_url: https://your.ghe.com # Specify your GHE\n      status: ${{ job.status }}\n      fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest\n    env:\n      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n    if: always()\n```\n\n## Require Permissions\n\nIf you are explicitly specifying permissions, must grant `contents` and `actions`.\n\n```yaml\npermissions:\n  contents: read\n  actions: read\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8398a7%2Faction-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8398a7%2Faction-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8398a7%2Faction-slack/lists"}