{"id":17657736,"url":"https://github.com/iroachie/slack-github-actions","last_synced_at":"2026-03-10T08:03:17.856Z","repository":{"id":40917892,"uuid":"268665590","full_name":"iRoachie/slack-github-actions","owner":"iRoachie","description":"A no-config GitHub action that notifies slack of the status of your GitHub actions","archived":false,"fork":false,"pushed_at":"2023-10-18T15:11:26.000Z","size":818,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T10:33:24.701Z","etag":null,"topics":["github-action","hac","hacktoberfest","nodejs","slack","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/slack-github-actions","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/iRoachie.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-06-02T00:45:21.000Z","updated_at":"2024-09-21T02:01:12.000Z","dependencies_parsed_at":"2024-06-20T22:08:54.937Z","dependency_job_id":null,"html_url":"https://github.com/iRoachie/slack-github-actions","commit_stats":{"total_commits":57,"total_committers":2,"mean_commits":28.5,"dds":"0.19298245614035092","last_synced_commit":"3dfb80317544db74c556bc5d308f8280aa2efffa"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iRoachie%2Fslack-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iRoachie%2Fslack-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iRoachie%2Fslack-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iRoachie%2Fslack-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iRoachie","download_url":"https://codeload.github.com/iRoachie/slack-github-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252860130,"owners_count":21815475,"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-action","hac","hacktoberfest","nodejs","slack","typescript"],"created_at":"2024-10-23T14:42:32.377Z","updated_at":"2026-03-10T08:03:12.802Z","avatar_url":"https://github.com/iRoachie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Github Actions\n\nA no-config GitHub action that notifies slack of the status of your GitHub actions\n\n![Demo](https://user-images.githubusercontent.com/5962998/83960734-32248a80-a85a-11ea-813e-ae2f033d0fc7.png)\n\n## Supported Triggers\n\nWe currently support:\n\n- `pull_request`\n- `release`\n- `push` (tags, commits)\n- `schedule`\n- `create (branch)`\n- `delete (branch)`\n\n## Messages\n\nAll event messages will have these elements:\n\n![Base Image](https://user-images.githubusercontent.com/5962998/83960101-c1c63b00-a852-11ea-8642-1b7fab22cc55.png)\n\n1. Build Indicator - Will be green for successful, red for failed, yellow for cancelled\n2. Author Github Profile and User - This is also a link their profile page\n3. Workflow Name - Also a link to the run\n4. Repository Name - Also a link\n5. Timestamp\n\n---\n\n### Pull Requests\n\n![Pull Request](https://user-images.githubusercontent.com/5962998/83960228-38b00380-a854-11ea-8353-1f5cf8cf5fc4.png)\n\n1. Commit Hash - Also a link showing the changes between the base and ref\n2. Pull Request Number and Title - Also a link to the Pull Request\n\n---\n\n### Releases\n\n![Release](https://user-images.githubusercontent.com/5962998/83960288-40bc7300-a855-11ea-945d-d55008a41d39.png)\n\n1. Commit Hash - Also a link showing all changes in the release\n2. Release Title - Also a link to the release and notes. _If the release doesn't have a title the tag name will be used._\n\n---\n\n### Tags\n\n![Tag](https://user-images.githubusercontent.com/5962998/83960351-e5d74b80-a855-11ea-9cb5-9eec2fc652d1.png)\n\n1. Commit Hash - Also a link showing all changes since this tag and master\n2. Tag name - Also a link to the tag\n\n### Commits\n\n![Commits](https://user-images.githubusercontent.com/5962998/85979786-1fabf580-b9af-11ea-88f7-1d71a08e14ee.png)\n\n1. Commit Hash - Also a link showing combined changes of all commits for the push\n2. Head Commit name - Name of last commit in the batch (can push multiple commits). Also a link to that commit.\n\n### Schedule\n\n![Schedule](https://user-images.githubusercontent.com/5962998/100900010-c9306f00-3498-11eb-9a56-3499d81f2523.png)\n\n\u003e Note that Schedule does not have the user as there's no commit information.\n\n### Create\n\n![Create](https://user-images.githubusercontent.com/5962998/104134782-22c26e00-5362-11eb-9855-d40b6fc1bf7d.png)\n\n1. Branch Name - Also link to the branch.\n\n### Delete\n\n![Delete](https://user-images.githubusercontent.com/5962998/104859938-0ba1f400-58ff-11eb-8645-9c5cedac4bde.png)\n\n1. Branch Name\n\n## Usage\n\nYou can use this action after any other action, however I recommend you put it as the last one. Here is an example setup of this action for a pull request:\n\n1. Create a `.github/workflows/test.yml` file in your GitHub repo.\n2. Add the following code to the `test.yml` file.\n\n```yaml\nname: Test\n\non:\n  pull_request:\n    branches:\n      - master\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n\n      - run: npm install\n      - run: npm test\n\n      - uses: iRoachie/slack-github-actions@v2.3.2\n        env:\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n        with:\n          status: ${{ job.status }}\n        if: ${{ always() }}\n```\n\n3. Create `SLACK_WEBHOOK_URL` secret using [GitHub Action's Secret](https://developer.github.com/actions/creating-workflows/storing-secrets). You can [generate a Slack incoming webhook token from here.](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks)\n\n## Advanced Usage\n\nHere's an example with jobs that run in parallel.\n\nIt does a few things:\n\n- Lets us know when a status check didn't succeed\n- If all jobs were successful, we'll send a message at the end\n\n\u003e Note that the status variable is omitted here.\n\n```yaml\nname: Test\n\non:\n  pull_request:\n    branches:\n      - master\n\njobs:\n  test:\n    name: Jest\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - run: yarn\n      - run: yarn test\n\n  lint:\n    name: Eslint\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - run: yarn\n      - run: yarn lint\n\n  notify:\n    Name: Slack\n    needs: [test, lint] # We only check after the others jobs have run\n    if: always() # Always runs even if one of the builds fails\n    runs-on: ubuntu-latest\n    steps:\n      - uses: iRoachie/slack-github-actions@v2.3.2\n        env:\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firoachie%2Fslack-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firoachie%2Fslack-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firoachie%2Fslack-github-actions/lists"}