{"id":20338227,"url":"https://github.com/openclassrooms/slack-pull-request-notifier","last_synced_at":"2025-08-24T19:32:22.537Z","repository":{"id":142003734,"uuid":"119038558","full_name":"OpenClassrooms/slack-pull-request-notifier","owner":"OpenClassrooms","description":"Slackbot written in Node.js that posts channel notifications to ping people when they are added as reviewers to a pull request, when changes are requested, and when those changes are approved.","archived":false,"fork":false,"pushed_at":"2021-01-26T12:03:15.000Z","size":1050,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-01T14:46:44.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenClassrooms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-26T10:26:04.000Z","updated_at":"2021-01-26T12:03:17.000Z","dependencies_parsed_at":"2023-07-22T01:43:14.910Z","dependency_job_id":null,"html_url":"https://github.com/OpenClassrooms/slack-pull-request-notifier","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/OpenClassrooms%2Fslack-pull-request-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2Fslack-pull-request-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2Fslack-pull-request-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2Fslack-pull-request-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenClassrooms","download_url":"https://codeload.github.com/OpenClassrooms/slack-pull-request-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241863377,"owners_count":20032970,"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-14T21:12:06.408Z","updated_at":"2025-03-04T14:27:54.730Z","avatar_url":"https://github.com/OpenClassrooms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack pull request notifier\n\n## What is it?\n\nThis is a Slackbot written in Node.js that posts channel notifications to ping people when they are added as reviewers to a pull request, when changes are requested, and when those changes are approved.\n\n![Illustration image](https://github.com/OpenClassrooms/slack-pull-request-notifier/blob/master/images/github-pull-request.png \"Illustration image\")\n\n## How is it used?\n\nFirst, you have to create a [new Slack application](https://api.slack.com/apps), then go to `Add features and functionality \u003e Incoming Webhooks` and click on `Add New Webhook to Workspace`.\n\nYou must properly set the following environment variables:\n\n`PORT` - Port of the http server. (Optional) (Default port is 9321) \n\n`SLACK_WEBHOOK` - your Slack webhook URL\n\nExample: `https://hooks.slack.com/services/foo/bar/foobar123`\n\n`USER_MAP` - nickname mapping from GitHub to Slack\n\nExample:\n\n    {\n        \"Mystraht\": \"john\",\n        \"Ayunn\": \"richard\",\n    }\n    \nThe keys (ex. \"Mystraht\") correspond to GitHub nicknames, and the values (ex. \"John\") correspond to Slack nicknames.\n\nSlack have issue with space in nickname, in this case use instead:\n\n    {\n        \"Mystraht\": \"john\",\n        \"Ayunn\": {\n          id: \"SLACK_USER_ID\",\n          name: \"richard\"\n        },\n    }\n\nYou can then launch the Node server by running:\n\n    npm install\n    npm run start\n\nYou will then have to configure your GitHub webhook.\n\nGo to your repository settings, and add a webhook with the following configuration:\n\n    Payload URL: http://\u003cYOUR_DOMAIN\u003e:9321/github-webhook\n    Content type: application/json\n    Event: Let me select individual events.\n        -\u003e Pull request\n        -\u003e Pull request review comment\n        -\u003e Pull request review\n        \n## Requirement\n\nThis version of Slack pull request notifier is tested with NodeJS v8 LTS.\n\n## Contributing\n\nFeel free to submit a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclassrooms%2Fslack-pull-request-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclassrooms%2Fslack-pull-request-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclassrooms%2Fslack-pull-request-notifier/lists"}