Skip to content

chore(release): announce beta + prod releases in Slack from the release scripts#556

Closed
alichherawalla wants to merge 2 commits into
mainfrom
chore/slack-release-notify
Closed

chore(release): announce beta + prod releases in Slack from the release scripts#556
alichherawalla wants to merge 2 commits into
mainfrom
chore/slack-release-notify

Conversation

@alichherawalla

@alichherawalla alichherawalla commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

What

Both release scripts now announce the release in Slack after the GitHub release is cut:

  • scripts/uat.sh (beta → TestFlight + Play internal) — posts after gh release create, before the notes tempfile is removed.
  • scripts/release.sh (production/local) — same step added before its rm -f "$NOTES_FILE".

Both call the existing scripts/notify-slack-release.mjs and are fail-soft (|| true) — a chat post can never fail an already-shipped build.

Why

The Slack announcer only fired from CI (release-ios.yml on workflow_run). Releases cut locally via uat.sh / release.sh posted nothing, so beta ships (which are cut on this machine) never announced. This wires the same notifier into the local path.

Secret handling

The webhook is read from the gitignored .env.keygen — the local secret store that already holds the RevenueCat / Resend / Keygen / Cloudflare tokens — mirroring the SLACK_WEBHOOK_URL repo secret the CI workflows use. It is extracted with a scoped sed for that one key (not a full source), so the other secrets in .env.keygen never enter the script environment. notify-slack-release.mjs no-ops when the webhook is unset, so this is a no-op on any machine without it.

No secrets are committed — .env.keygen, fastlane/.env, and .env* are all confirmed gitignored.

Verification

  • notify-slack-release.mjs posted the 0.0.103-beta.3 announcement successfully via this webhook during the live release.
  • No native/deps/config changes; scripts-only.

Summary by CodeRabbit

  • New Features

    • Added automatic Slack notifications when GitHub releases and beta prereleases are published.
    • Notifications include the product, version, release link, and beta status where applicable.
  • Reliability

    • Release and beta build processes continue successfully even if Slack notification delivery fails.

…se scripts

uat.sh (beta) and release.sh (production/local) now post the release notes
to Slack via scripts/notify-slack-release.mjs after the GitHub release is cut,
before the notes tempfile is removed. Fail-soft (|| true) so a chat post can
never fail a shipped build.

The webhook is read from the gitignored .env.keygen (the local secret store
that already holds the RevenueCat/Resend/Keygen/Cloudflare tokens), mirroring
the SLACK_WEBHOOK_URL repo secret the CI release workflows use. Extracted with
a scoped sed for that one key, not a full source, so the other secrets in
.env.keygen stay out of the script env. notify-slack-release.mjs no-ops when
the webhook is unset, so this is a no-op on machines without it.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 591396fc-0aac-42a2-814a-691fc9cbf930

📥 Commits

Reviewing files that changed from the base of the PR and between 6477754 and 57913c5.

📒 Files selected for processing (1)
  • scripts/release.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • scripts/release.sh

📝 Walkthrough

Walkthrough

Release and beta UAT scripts now notify Slack after creating GitHub releases. They resolve the webhook URL, retrieve the release URL, invoke the shared notifier with release metadata, and ignore notification failures.

Changes

Release notifications

Layer / File(s) Summary
Notify Slack after release creation
scripts/release.sh, scripts/uat.sh
Release and beta workflows resolve SLACK_WEBHOOK_URL, fetch the GitHub release URL, invoke notify-slack-release.mjs, and continue when notification fails.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is informative but does not follow the required template; it omits Summary, Type of Change, Screenshots, and Checklist sections. Add the template sections, especially Summary, Type of Change, Screenshots or N/A, Checklist, Related Issues, and Additional Notes for completeness.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding Slack release announcements from the release scripts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/slack-release-notify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

release.sh omitted CHANNEL_LABEL, so prod announcements rendered with no
channel tag while uat.sh betas showed `beta`. Pass CHANNEL_LABEL=stable
for parity — the notify script's documented values are beta | stable.
@gitar-bot

gitar-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Integrates automatic Slack release notifications into local uat.sh and release.sh scripts. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud

Copy link
Copy Markdown

@alichherawalla

Copy link
Copy Markdown
Collaborator Author

Subsumed by #557 — its two commits (Slack release announcements in uat.sh/release.sh) were merged into fix/ios-download-durable-staging. Closing to avoid a double-merge; the changes ship with #557.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant