Skip to content

Fix whitelist glob expansion and auto-detect version#98

Merged
ssestak merged 1 commit intomainfrom
fix/notify-consumer-repos
Apr 1, 2026
Merged

Fix whitelist glob expansion and auto-detect version#98
ssestak merged 1 commit intomainfrom
fix/notify-consumer-repos

Conversation

@ssestak
Copy link
Copy Markdown
Collaborator

@ssestak ssestak commented Apr 1, 2026

Summary

Improves the consumer repo notification system (from PR #97) with robust branch management, stale PR handling, rollout control, and breaking change detection.

Changes

  • Stable branch reuse — housekeep/bump-shared-workflows (no version suffix); if branch already exists, resets it instead of failing
  • Stale PR updates — if an open PR exists from a previous version, updates its branch, title, and body instead of creating a duplicate
  • Breaking change detection — major version bumps auto-create draft PRs with a CAUTION warning
  • Rollout whitelist — NOTIFY_REPOS_WHITELIST repo variable with glob patterns (e.g. ios-*, one per line) controls which repos receive PRs
  • Auto-detect version — workflow_dispatch picks the latest version tag automatically (no manual input)
  • Robustness fixes — handles CRLF in GitHub variables, search API rate limits, set -e edge cases with gh CLI

Notes

  • Requires BOT_TOKEN secret with repo + workflow scopes (classic PAT)
  • Requires NOTIFY_REPOS_WHITELIST repo variable (optional) for gradual rollout
  • Tested end-to-end: created PRs in futuredapp/gmlh-android and futuredapp/gmlh-ios

Test plan

  • Dry run with whitelist glob patterns
  • Dry run with CRLF line endings in whitelist
  • CI run creating PRs in 2 whitelisted repos
  • Verify stale PR update when re-running with a newer version
  • Verify draft PR creation on a major version bump

@ssestak ssestak force-pushed the fix/notify-consumer-repos branch from ad0a216 to 20f3625 Compare April 1, 2026 14:23
…, whitelist, breaking detection

- Stable branch name (housekeep/bump-shared-workflows) reused across releases
- If an open PR exists, reset the branch and update PR title/body
  instead of creating duplicates
- Major version bumps auto-detected and create draft PRs with caution block
- NOTIFY_REPOS_WHITELIST repo variable for gradual rollout (glob
  patterns matching repo names without org prefix, one per line)
- workflow_dispatch auto-detects latest version tag (no manual input)
- Handles CRLF in GitHub Actions variables, stale branches, search
  API rate limits, and set -e edge cases with gh CLI

Requires BOT_TOKEN secret with repo + workflow scopes (classic PAT).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ssestak ssestak force-pushed the fix/notify-consumer-repos branch from 20f3625 to 323b3f4 Compare April 1, 2026 14:32
@ssestak ssestak enabled auto-merge April 1, 2026 14:41
@ssestak ssestak merged commit 5e7c931 into main Apr 1, 2026
3 checks passed
@ssestak ssestak deleted the fix/notify-consumer-repos branch April 1, 2026 14:43
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.

2 participants