Skip to content

Support bot: swap Code Week 4 All participation codes on scoped events#3632

Merged
bernardhanna merged 1 commit into
masterfrom
feature/support-event-participation-code-update
Jul 15, 2026
Merged

Support bot: swap Code Week 4 All participation codes on scoped events#3632
bernardhanna merged 1 commit into
masterfrom
feature/support-event-participation-code-update

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • Add support:event-participation-code-update to preview and apply participation code swaps on events scoped by year/month
  • Parse requests like Rosa Montalbano's email (change cw25-E6CDgcw26-wNc6o for June 2026 activities)
  • Wire support bot triage to run a dry-run first, then apply on email APPROVE

Bot flow

  1. Email: "change the code cw25-E6CDg with cw26-wNc6o for activities registered in June 2026"
  2. Bot dry-runs and sends approval email listing matched events
  3. Reply APPROVE to update only those scoped events

Manual CLI (same logic as tinker, no tinker needed)

# 1. Preview
php artisan support:event-participation-code-update cw25-E6CDg cw26-wNc6o --year=2026 --month=6 --dry-run --json

# 2. Apply
php artisan support:event-participation-code-update cw25-E6CDg cw26-wNc6o --year=2026 --month=6 --json

Test plan

  • Unit tests for parser, service, and artisan allowlist
  • Deploy + run dry-run on prod for Rosa's case before applying
  • Forward a test email to support bot and confirm APPROVE flow

Made with Cursor

Lets staff preview and approve changing Code Week 4 All codes on events registered in a given year/month, matching requests like Rosa Montalbano's.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna bernardhanna merged commit c5a05f6 into master Jul 15, 2026
1 check failed
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