# GitHub release published notifications on your phone > Get a push notification when a new release is published on GitHub. - Company: GitHub (https://www.justpush.io/recipes/github) - Event: `release` (Releases) - Tags: Developer tools, Releases - Install: https://studio.justpush.io/recipes/github/release-published - Web page: https://www.justpush.io/recipes/github/release-published ## Setup 1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL. 2. In your repository (or organization), go to Settings > Webhooks and click Add webhook. 3. Paste your webhook URL (shown in Studio after install) as the Payload URL and set Content type to application/json. 4. Enter a secret and copy the same secret into JustPush. 5. Choose Let me select individual events, tick Releases, and save. GitHub sends a ping right away. 6. Tick **Releases** in the webhook's events. Only *published* releases push; drafts, edits and deletions are ignored. 7. GitHub signs every delivery with your secret (`X-Hub-Signature-256`), and JustPush checks it, so requests that don't come from GitHub are rejected. ## Code Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing. ```js // GitHub โ†’ release (release published) // Get a push notification when a new release is published on GitHub. // Docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads#release // Header names can arrive in any case. function header(request, name) { const headers = request.headers || {} const key = Object.keys(headers).find((k) => k.toLowerCase() === name) const value = key ? headers[key] : null return Array.isArray(value) ? value[0] : value } // Only link to real http(s) URLs. function link(url, cta) { return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : [] } function handleRequest(request) { const body = request.body && typeof request.body === "object" ? request.body : {} const event = header(request, "x-github-event") // Saving the webhook makes GitHub send a ping; confirm the connection quietly. if (event === "ping" || (body.zen && body.hook_id)) { return { title: "๐Ÿ”” GitHub connected", message: `Webhook for ${body.repository?.full_name ?? body.organization?.login ?? "your account"} is working`, topic: "GitHub", priority: -1, } } // Guard: only release events. The header decides when it's there; the payload's // shape is the fallback (for example in Studio's Test runner). if (event ? event !== "release" : !(body.release)) { console.log(`Ignoring GitHub "${event ?? "unknown"}" event`) return null } const repo = body.repository?.full_name ?? "a repository" const release = body.release // Only published releases; drafts, edits and deletions are skipped. if (body.action !== "published" || !release) { console.log(`Skipping release action "${body.action}"`) return null } const tag = release.tag_name ?? "a new version" const name = release.name && release.name !== release.tag_name ? ` โ€” ${release.name}` : "" const by = release.author?.login ? ` by @${release.author.login}` : "" return { title: `${release.prerelease ? "๐Ÿงช" : "๐Ÿš€"} ${repo} ${tag}${release.prerelease ? " (pre-release)" : ""}`, message: `Released${by}${name}`, topic: "GitHub", priority: release.prerelease ? -1 : 0, // Pre-releases are quieter than real releases buttons: link(release.html_url, "View release"), } } ``` ## GitHub release webhook payload (sample) ```json { "action": "published", "sender": { "login": "janedoe" }, "release": { "id": 2, "name": "Faster checkout", "draft": false, "author": { "login": "janedoe" }, "html_url": "https://github.com/acme/web/releases/tag/v2.4.0", "tag_name": "v2.4.0", "prerelease": false, "published_at": "2026-09-29T10:00:00Z" }, "repository": { "html_url": "https://github.com/acme/web", "full_name": "acme/web" } } ``` ## Signature check GitHub signs every webhook with an HMAC-SHA256 hash of the request body in the X-Hub-Signature-256 header, made with the secret you set on the webhook. JustPush checks it before the code runs. ## FAQ ### Does this work on iPhone and Android? Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification. ### Do I need to write code? No. Install the recipe in Studio, paste your webhook URL into GitHub and you are done. The code is there if you want to change the text, the sound or the buttons. ### Can I change what the notification says? Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save. ### What does it cost? JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.