{"id":15408961,"url":"https://github.com/rojvv/ghb","last_synced_at":"2025-04-14T22:50:31.619Z","repository":{"id":41238999,"uuid":"508721558","full_name":"rojvv/ghb","owner":"rojvv","description":"Public Telegram-GitHub Notification Webhook","archived":false,"fork":false,"pushed_at":"2025-03-25T01:02:18.000Z","size":132,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T22:44:18.265Z","etag":null,"topics":["github","telegram","webhook"],"latest_commit_sha":null,"homepage":"","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/rojvv.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":"2022-06-29T14:17:24.000Z","updated_at":"2025-03-25T01:02:21.000Z","dependencies_parsed_at":"2024-01-07T12:35:28.563Z","dependency_job_id":"77053882-120b-49b3-b49c-8ae6af1ed91d","html_url":"https://github.com/rojvv/ghb","commit_stats":{"total_commits":115,"total_committers":4,"mean_commits":28.75,"dds":"0.034782608695652195","last_synced_commit":"311a5eb7ef7ec0360395f6eeac3e5edd9cb8ac86"},"previous_names":["rzhj/ghb","roj-im/ghb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojvv%2Fghb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojvv%2Fghb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojvv%2Fghb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojvv%2Fghb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rojvv","download_url":"https://codeload.github.com/rojvv/ghb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975299,"owners_count":21192199,"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","telegram","webhook"],"created_at":"2024-10-01T16:36:13.478Z","updated_at":"2025-04-14T22:50:31.601Z","avatar_url":"https://github.com/rojvv.png","language":"TypeScript","readme":"# Public GitHub-Telegram Notification Webhook\n\n- [Installation](#installation)\n  - [Setting Up a Chat](#setting-up-a-chat)\n  - [Obtaining the Webhook URL](#obtaining-the-webhook-url)\n  - [Configuring GitHub](#configuring-github)\n    - [A Single Repository](#a-single-repository)\n    - [A Whole Organization](#a-whole-organization)\n- [Username Directory](#username-directory)\n- [Supported Events](#supported-events)\n\n## Installation\n\n### Setting Up a Chat\n\n1. Create a bot by contacting [@BotFather](https://t.me/BotFather).\n2. Create a new channel or group.\n3. If you just created a group, for a better experience, convert it to a\n   supergroup by going to Settings \u003e Chat history for new members, and set it to\n   visible. You can later undo this.\n4. Get its ID.\n\n### Obtaining the Webhook URL\n\nAfter you have a bot and a chat ready, your webhook URL will look like this:\n\n```text\nhttps://ghb.deno.dev/?token=your_bot_token\u0026chatId=your_chat_id\n```\n\nIf the chat is a forum, you can specify a topic ID using `messageThreadId`:\n\n```text\nhttps://ghb.deno.dev/?token=your_bot_token\u0026chatId=your_chat_id\u0026messageThreadId=topicId\n```\n\nIf you use a self-hosted version, you might need to replace\n`https://ghb.deno.dev/` with something else.\n\n### Configuring GitHub\n\n#### A Single Repository\n\n1. Open the settings of your repository.\n2. Go to the Webhooks tab.\n3. Click Add webhook.\n4. Set the Payload URL to the URL you obtained previously.\n5. Set the Content type to `application/json`.\n6. Choose Send me everything.\n7. Click Add webhook.\n\n#### A Whole Organization\n\nIf your repositories are under a GitHub organization, we recommend configuring\nthe whole organization once, so you won't have to configure each repository\nindividually. The steps are the same as configuring the webhook for a single\nrepository, except you open your organization's settings instead.\n\n1. Open the settings of your organization.\n2. Go to the Webhooks tab.\n3. Click Add webhook.\n4. Set the Payload URL to the URL you obtained previously.\n5. Set the Content type to `application/json`.\n6. Choose Send me everything.\n7. Click Add webhook.\n\n## Username Directory\n\nIf anyone prefers to display their Telegram handle next to their GitHub handle\nin the notifications relevant to them, they can make a pull request to add\nthemselves to the [`username_directory.json`](./username_directory.json) file.\n\nThis will apply for all users of the public instance.\n\n## Supported Events\n\nNotifications are currently sent when:\n\n- the webhook is activated\n- a push is made\n- an issue is opened, edited, closed, or reopened\n- a pull request is opened, edited, closed, or reopened\n- Someone adds or removes a star\n- a fork is made\n- a pull request review is submitted\n- a comment is made on a pull request review\n- a comment is made on a pull request or an issue\n- a branch or ref is deleted\n- a release is made\n- a deployment is made\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frojvv%2Fghb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frojvv%2Fghb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frojvv%2Fghb/lists"}