{"id":19404297,"url":"https://github.com/hasithaishere/slack-connector-action","last_synced_at":"2025-02-25T00:32:16.420Z","repository":{"id":163889827,"uuid":"639332598","full_name":"hasithaishere/slack-connector-action","owner":"hasithaishere","description":"GitHub Action to push action events to Slack workflow. ","archived":false,"fork":false,"pushed_at":"2023-05-11T10:04:02.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T12:47:35.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hasithaishere.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":"2023-05-11T08:56:01.000Z","updated_at":"2023-05-11T09:17:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a28996d-9c1d-442e-859f-9ba5ba2a02d3","html_url":"https://github.com/hasithaishere/slack-connector-action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fslack-connector-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fslack-connector-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fslack-connector-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fslack-connector-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasithaishere","download_url":"https://codeload.github.com/hasithaishere/slack-connector-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240581423,"owners_count":19824139,"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":[],"created_at":"2024-11-10T11:33:57.046Z","updated_at":"2025-02-25T00:32:16.392Z","avatar_url":"https://github.com/hasithaishere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Connector Action\nGitHub Action to push action events to Slack workflow. \n\n## Setting up this action\n\n1. First you need to create GitHub Action secret called `SLACK_WEBHOOK_URL`. This secret value should be valid Slack webhook url. For more info please check this [link](https://api.slack.com/messaging/webhooks).\n\n2. If you haven't already done so, create a `.github/workflows` folder in your\n  repository (_this is where your actions will live_).\n\n3. Now create a `.github/workflows/slack-notification-on-pr-merge.yml` file with these contents:\n``` yaml\nname: Notify on PR merge without approvals\n\non:\n  pull_request:\n    types: [ closed ]\n    branches:\n      - main\n\njobs:\n  slack_notification:\n    runs-on: ubuntu-latest\n    if: ${{ github.event.pull_request.merged \u0026\u0026 github.event.pull_request.reviews.total_count == 0 }}\n    steps:\n      - name: Send Slack Notification\n        uses: hasithaishere/slack-connector-action@vmain\n        with:\n          slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}\n```\n\n## For Maintainers\n\nAs general, this Github action also use ncc to package the code in to single js file. So in the development please globally install ncc first.\n\n```sh\nnpm i -g @vercel/ncc --save\n```\n\nAfter your development, please execute following command for building the package file, then push the code to GitHub.\n\n```sh\nnpm run build\n```\n\n## Developers\n\n- [Hasitha Gamage](hasitha@rocketbots.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Fslack-connector-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasithaishere%2Fslack-connector-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Fslack-connector-action/lists"}