{"id":27239353,"url":"https://github.com/yujiosaka/hubot-github-comment-notifier","last_synced_at":"2025-04-10T19:10:40.330Z","repository":{"id":24889095,"uuid":"28305262","full_name":"yujiosaka/hubot-github-comment-notifier","owner":"yujiosaka","description":"A GitHub pull request and issue comment notifier for hubot","archived":false,"fork":false,"pushed_at":"2017-03-09T01:32:33.000Z","size":544,"stargazers_count":10,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-09T11:03:50.055Z","etag":null,"topics":["chrome","headless","hubo","king","of","puppeteer","time"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/yujiosaka.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}},"created_at":"2014-12-21T16:25:54.000Z","updated_at":"2023-04-09T11:03:50.055Z","dependencies_parsed_at":"2022-08-22T20:10:11.797Z","dependency_job_id":null,"html_url":"https://github.com/yujiosaka/hubot-github-comment-notifier","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujiosaka%2Fhubot-github-comment-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujiosaka%2Fhubot-github-comment-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujiosaka%2Fhubot-github-comment-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujiosaka%2Fhubot-github-comment-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yujiosaka","download_url":"https://codeload.github.com/yujiosaka/hubot-github-comment-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279602,"owners_count":21077407,"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":["chrome","headless","hubo","king","of","puppeteer","time"],"created_at":"2025-04-10T19:10:39.868Z","updated_at":"2025-04-10T19:10:40.322Z","avatar_url":"https://github.com/yujiosaka.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hubot-github-comment-notifier\n\nA GitHub pull request and issue comment notifier for hubot\n\nSee following for full documentation.\n\n- [`src/hubot-github-pull-request.coffee`](src/github-pull-request.coffee)\n- [`src/hubot-github-issue.coffee`](src/github-issue.coffee)\n\n## Assumptions\n\n`hubot-github-comment-notifier` makes the following assumptions:\n\n- Pull request and issue comments should be notified with assignee and mentions when they are specified\n- Pull request and issue comments may be notified in different rooms\n- May limit notifications only when there are mentions in comments\n  - Currently other conditions like labels and milestones are not supported to limit notifications\n  - Your pull requests are welcomed to add more control to the notification limitation\n- Other GitHub events than pull request and issue comment should be supported in other modules\n  - Use [hubot-github-repo-event-notifier](https://github.com/hubot-scripts/hubot-github-repo-event-notifier), for example, if you need support for other events\n- Only sends notifications when\n  - pull request\n    - pull request is (re)opened\n    - comment is added to pull request\n    - pull request is closed\n  - issue\n    - issue is (re)opened\n    - comment is added to issue\n    - issue is closed\n\n## Installation\n\nIn hubot project repo, run:\n\n`npm install hubot-seen --save`\n\nThen add **hubot-github-comment-notifier** to your `external-scripts.json`:\n\n```json\n[\"hubot-github-comment-notifier\"]\n```\n\n## Configuration\n\n| Variable | Description |\n| -------- | ----------- |\n| `HUBOT_TEAM_PATH` | *(Optional)* If you want to convert GitHub's `@` mention to another services's (Slack and etc.) mention, you can specify a json file to describe the conversion rule. |\n\n### HUBOT_TEAM_PATH\n\nThe json file should looks like this:\n\n```\n{\n  \"@github_mention\": \"\u003c@slack_mention\u003e\"\n}\n```\n\nSee [`_team.json`](_team.json) for its example\n\n### [Webhooks](https://developer.github.com/webhooks/)\n\n#### Pull Request\n\nYou need to add `HUBOT_URL/hubot/github-pull-request?room=ROOM[\u0026only-mentioned=1][\u0026randm-mention=1]` to your repository's webhooks.\n\n| Parameter | Description |\n| -------- | ----------- |\n| `HUBOT_URL` | Your Hubot server's url |\n| `ROOM` | To which room you want to send notification |\n\n- When `\u0026only-mentioned=1` is added, it sends notifications only when there are `@` mentions.\n- When `\u0026random-mention=1` is added, it picks-up a user from team.json and send notification.\n  - You can specify more than `2` in the value to pick-up more than two users.\n\n#### Issue\n\nYou need to add `HUBOT_URL/hubot/github-issue?room=ROOM[\u0026only-mentioned=1]` to your repository's webhooks.\n\n| Parameter | Description |\n| -------- | ----------- |\n| `HUBOT_URL` | Your Hubot server's url |\n| `ROOM` | To which room you want to send notification |\n\n- When `\u0026only-mentioned=1` is added, it sends notifications only when there are `@` mentions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyujiosaka%2Fhubot-github-comment-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyujiosaka%2Fhubot-github-comment-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyujiosaka%2Fhubot-github-comment-notifier/lists"}