Skip to content

ci: add Google Chat PR notification#77

Open
thomson-t wants to merge 1 commit into
mainfrom
ci/pr-notify-gchat
Open

ci: add Google Chat PR notification#77
thomson-t wants to merge 1 commit into
mainfrom
ci/pr-notify-gchat

Conversation

@thomson-t

@thomson-t thomson-t commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Background

  • Other mParticle SDK repos notify a Google Chat space when a PR is opened or updated.
  • This repo had no such mechanism; PRs were invisible to the channel.

What Has Changed

  • Added a pr-notify job to .github/workflows/pull-request.yml
  • Uses the shared reusable workflow ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml (pinned to commit SHA for supply-chain safety, consistent with rokt-sdk-react-native)
  • Runs only on non-draft PRs, and only after test, build-android, build-ios, and build-web all succeed
  • Reads the GCHAT_PRS_WEBHOOK secret (same secret name used by all sibling mParticle SDK repos)

Screenshots/Video

N/A — CI workflow change only.

Checklist

  • Self-review completed
  • Tests added or updated
  • Tested locally

Adds a pr-notify job to pull-request.yml, matching the pattern used by
sibling repos (react-native-mparticle, mparticle-android-sdk,
cordova-plugin-mparticle, mparticle-apple-sdk).

- Runs only on non-draft PRs, after test + all build-* jobs succeed
- Uses the shared ROKT/rokt-workflows reusable workflow (pinned to commit SHA)
- Posts to Google Chat via GCHAT_PRS_WEBHOOK secret

Prerequisite: an org admin must add GCHAT_PRS_WEBHOOK secret to this repo
(copy value from any existing mParticle SDK repo).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
CI-only change with no application code impact; the notify job will fail until GCHAT_PRS_WEBHOOK is set.

Overview
Adds a pr-notify job to the pull request workflow so non-draft PRs can post to Google Chat after CI succeeds, matching other mParticle SDK repos.

The job runs only when github.event_name == 'pull_request' and the PR is not a draft. It needs test, build-android, build-ios, and build-web, then calls the pinned reusable workflow ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml and passes secrets.GCHAT_PRS_WEBHOOK as gchat_webhook. Notifications will not work until that repo secret is configured.

Reviewed by Cursor Bugbot for commit c1aae97. Bugbot is set up for automated code reviews on this repo. Configure here.

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.

3 participants