{"id":16540836,"url":"https://github.com/itzg/discord-github-melder-bot","last_synced_at":"2026-03-07T21:32:33.090Z","repository":{"id":37034150,"uuid":"448724157","full_name":"itzg/discord-github-melder-bot","owner":"itzg","description":"Discord bot that provides a command for users to link their Github user and apply contributor role","archived":false,"fork":false,"pushed_at":"2024-12-16T11:31:16.000Z","size":196,"stargazers_count":4,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T13:19:39.784Z","etag":null,"topics":["discord-bot","github"],"latest_commit_sha":null,"homepage":"","language":"Java","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/itzg.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-17T02:00:13.000Z","updated_at":"2025-06-23T10:12:04.000Z","dependencies_parsed_at":"2024-10-28T10:17:27.106Z","dependency_job_id":"4dd34161-a760-4beb-a9b6-5e28eaa8626e","html_url":"https://github.com/itzg/discord-github-melder-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itzg/discord-github-melder-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdiscord-github-melder-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdiscord-github-melder-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdiscord-github-melder-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdiscord-github-melder-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/discord-github-melder-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdiscord-github-melder-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["discord-bot","github"],"created_at":"2024-10-11T18:53:25.939Z","updated_at":"2026-03-07T21:32:33.018Z","avatar_url":"https://github.com/itzg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a Discord bot that provides an application command for Discord users to link their Github user and automatically apply a contributor role to those users that have contributed to the configured repositories.\n\n# Installation\n\n## [Create Discord application](https://discord.com/developers/applications)\n\nGo to the Bot section and create a bot there. \n \nWhen generating the application invite URL, enable the scopes\n  - bot\n    - Manage Roles\n  - applications.commands\n\nThe generated URL should end with `permissions=268435456\u0026scope=bot%20applications.commands`\n\nAdd a role named \"Contributor\" to servers that the bot will join and **make sure the bot's role is higher than the \"Contributor\" role**.\n\n## [Create Github OAuth2 application](https://github.com/settings/developers)\n\n- Generate a client secret\n- Set \"Authorization callback URL\" to the base URL of your bot with the path `/login/oauth2/code/github`\n\n## Optional: [Generate personal access token](https://github.com/settings/tokens)\n\nIf you would like the bot to install a webhook into each Github repository, allocate a personal access token with the scope\n- `admin:repo_hook`\n\nIt can be given a very short expiration since it is only needed during initial setup and any time more repositories are added to the configuration.\n\n## MongoDB\n\n**Version:** 4.x\n\n**Database:** discord-github-melder\n\n\u003e **INFO** Database can be created from mongo CLI with `use discord-github-melder`\n\nCreate user for the bot application's access, such as:\n\n```\ndb.createUser({\n  user: \"dev\",\n  pwd: \"dev\",\n  roles: [\"readWrite\"]\n})\n```\n\n## Configure container\n\n### Image\n\n[`ghcr.io/itzg/discord-github-melder-bot:{tag}`](https://github.com/itzg/discord-github-melder-bot/pkgs/container/discord-github-melder-bot)\n\n### Ports\n\n- `8080` : For HTTP requests\n\n### Environment Variables\n\n\u003e **WARNING** Be sure to securely declare application IDs and tokens\n\n| Variable                   | Required | Description                                                                    |\n|----------------------------|----------|--------------------------------------------------------------------------------|\n| GITHUB_CLIENT_ID           | Yes      | Github OAuth2 client ID                                                        |\n| GITHUB_CLIENT_SECRET       | Yes      | Github OAuth2 client secret                                                    |\n| MONGO_HOST                 | Yes      |                                                                                |\n| MONGO_USERNAME             | Yes      | A user with read/write, create collection/index permissions                    |\n| MONGO_PASSWORD             | Yes      |                                                                                |\n| APP_DISCORD_APPLICATION_ID | Yes      | From `https://discord.com/developers/applications/{id}/information`            |\n| APP_DISCORD_BOT_TOKEN      | Yes      | From `https://discord.com/developers/applications/{id}/bot`                    |\n| APP_GITHUB_REPOS           | Yes      | Comma-separated list of `{org}/{name}`                                         |\n| APP_BASE_URL               | Yes      | Publicly accessible URL that is routed to this container.                      |\n| APP_GITHUB_ACCESS_TOKEN    | No       | Personal access token used at startup to install missing webhook declarations. |\n| APP_GITHUB_WEBHOOK_SECRET  | No       | If set, the installed webhook will use the given secret for signing calls.     |\n| LOGGING_LEVEL_APP          | No       | Change application logging level, such as `debug`                              |\n\nThere are more optional, lower priority properties declared [here](src/main/java/me/itzg/melderbot/config/AppProperties.java).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fdiscord-github-melder-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Fdiscord-github-melder-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fdiscord-github-melder-bot/lists"}