{"id":21066507,"url":"https://github.com/eidam/cf-workers-github-releases","last_synced_at":"2025-04-12T20:13:10.456Z","repository":{"id":107400916,"uuid":"308777728","full_name":"eidam/cf-workers-github-releases","owner":"eidam","description":"Get notified on Slack when a new version of your favorite repositories is released. Using Cloudflare Workers, CRON Triggers, and KV storage.","archived":false,"fork":false,"pushed_at":"2020-11-09T16:41:15.000Z","size":94,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T20:13:04.957Z","etag":null,"topics":["cloudflare-workers","cloudflare-workers-cron","cloudflare-workers-kv","github-releases","releases","slack","wrangler"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eidam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","code_of_conduct":"code_of_conduct.md","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":"2020-10-31T01:06:18.000Z","updated_at":"2024-06-19T22:01:01.000Z","dependencies_parsed_at":"2023-05-17T10:00:39.014Z","dependency_job_id":null,"html_url":"https://github.com/eidam/cf-workers-github-releases","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-github-releases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-github-releases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-github-releases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-github-releases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eidam","download_url":"https://codeload.github.com/eidam/cf-workers-github-releases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625505,"owners_count":21135513,"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":["cloudflare-workers","cloudflare-workers-cron","cloudflare-workers-kv","github-releases","releases","slack","wrangler"],"created_at":"2024-11-19T17:59:58.271Z","updated_at":"2025-04-12T20:13:10.431Z","avatar_url":"https://github.com/eidam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Worker - GitHub repository releases\n\nGet notified on Slack when a new version of your favorite repositories is released. Using **Cloudflare Workers**, **CRON Triggers,** and **KV storage**.\n\n![slack-screenshot.png](.gitbook/assets/slack-screenshot.png)\n\n## Pre-requisites\n\nYou'll need a [Cloudflare Workers account](https://dash.cloudflare.com/sign-up/workers) with\n\n* A workers domain set up\n* The Workers Bundled subscription \\($5/mo\\)\n\nAlso, prepare the following secrets\n\n* Cloudflare API token with `Edit Cloudflare Workers` permissions\n* GitHub API personal token\n* Slack incoming webhook\n\n## Getting started\n\nYou can either deploy with **Cloudflare Deploy Button** using GitHub Actions or deploy on your own.\n\n### Deploy with Cloudflare Deploy Button\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button?paid=true)](https://deploy.workers.cloudflare.com/?url=https://github.com/eidam/cf-workers-github-releases\u0026paid=true)\n\n1. Click the button and follow the instructions, you should end up with a clone of this repository\n2. Navigate to your new **GitHub repository \u0026gt; Settings \u0026gt; Secrets** and add the following secrets:\n\n   ```text\n   - Name: CF_API_TOKEN (should be added automatically)\n   \n   - Name: CF_ACCOUNT_ID (should be added automatically)\n\n   - Name: SECRET_SLACK_WEBHOOK_URL\n   - Value: your-slack-webhook-url\n\n   - Name: SECRET_GITHUB_TOKEN\n   - Value: your-porsonal-read-github-token\n   ```\n\n3. Adjust [index.js](https://github.com/adam-janis/cf-workers-github-releases/tree/54f79a32c962967fd4523b7ba48415acef1f16c7/index.js) to list all of your repositories you want to watch\n\n   ```javascript\n   const githubRepositories = [\n     'eidam/cf-workers-github-releases',\n     'cloudflare/wrangler',\n     'cloudflare/wrangler-action',\n     '...',\n   ]\n   ```\n\n4. Push to `main` branch to trigger the deployment\n5. 🎉\n\n### Deploy on your own\n\nYou can clone the repository yourself and use Wrangler CLI to develop/deploy, extra list of things you need to take care of:\n\n* create KV namespace and add the `KV_GITHUB_RELEASES` binding to [wrangler.toml](https://github.com/adam-janis/cf-workers-github-releases/tree/54f79a32c962967fd4523b7ba48415acef1f16c7/wrangler.toml)\n* create Worker secrets\n  * `SECRET_SLACK_WEBHOOK_URL`\n  * `SECRET_GITHUB_TOKEN`\n\n## Known issues\n\n* **Max 25 repositories to watch**, due to the limit of subrequests Cloudflare Worker can make \\(50\\).\n\n  The plan is to support up to 49 by sending only one Slack notification per scheduled run.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidam%2Fcf-workers-github-releases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feidam%2Fcf-workers-github-releases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidam%2Fcf-workers-github-releases/lists"}