@@ -502,11 +502,94 @@ echo "Workflow triggered. Waiting for PR creation..."
502502 ## Files Generated
503503 - \`release-notes-${NEW_VERSION}.md\` - Comprehensive release notes
504504 - \`post-release-checklist.md\` - Follow-up tasks
505+ - \`gtm-summary-${NEW_VERSION}.md\` - Marketing team notification
505506 EOF
506507 ```
507508
5085094. **RELEASE COMPLETION**: All post-release setup completed?
509510
511+ ### Step 16: Generate GTM Feature Summary
512+
513+ 1. **Extract and analyze PR data:**
514+ ```bash
515+ echo "📊 Checking for marketing-worthy features..."
516+
517+ # Extract all PR data inline
518+ PR_DATA=$(
519+ PR_LIST=$(git log ${BASE_TAG}..HEAD --grep="Merge pull request" --pretty=format:"%s" | grep -oE "#[0-9]+" | tr -d '#' | sort -u)
520+
521+ echo "["
522+ first=true
523+ for PR in $PR_LIST; do
524+ [[ "$first" == true ]] && first=false || echo ","
525+ gh pr view $PR --json number,title,author,body,files,labels,closedAt 2>/dev/null || continue
526+ done
527+ echo "]"
528+ )
529+
530+ # Save for analysis
531+ echo "$PR_DATA" > prs-${NEW_VERSION}.json
532+ ```
533+
534+ 2. **Analyze for GTM-worthy features:**
535+ ```
536+ <task>
537+ Review these PRs to identify if ANY would interest a marketing/growth team.
538+
539+ Consider if a PR:
540+ - Changes something users directly interact with or experience
541+ - Makes something noticeably better, faster, or easier
542+ - Introduces capabilities users have been asking for
543+ - Has visual assets (screenshots, GIFs, videos) that could be shared
544+ - Tells a compelling story about improvement or innovation
545+ - Would make users excited if they heard about it
546+
547+ Many releases contain only technical improvements, bug fixes, or internal changes -
548+ that's perfectly normal. Only flag PRs that would genuinely interest end users.
549+
550+ If you find marketing-worthy PRs, note:
551+ - PR number, title, and author
552+ - Any media links from the description
553+ - One sentence on why it's worth showcasing
554+
555+ If nothing is marketing-worthy, just say "No marketing-worthy features in this release."
556+ </task>
557+
558+ PR data: [contents of prs-${NEW_VERSION}.json]
559+ ```
560+
561+ 3. **Generate GTM notification (only if needed):**
562+ ```
563+ If there are marketing-worthy features, create a message for #gtm with:
564+
565+ 🚀 Frontend Release v${NEW_VERSION}
566+
567+ Timeline: Available now in nightly, ~2-3 weeks for core
568+
569+ Features worth showcasing:
570+ [List the selected PRs with media links and authors]
571+
572+ Testing: --front-end-version ${NEW_VERSION}
573+
574+ If there are NO marketing-worthy features, generate:
575+ "No marketing-worthy features in v${NEW_VERSION} - mostly internal improvements and bug fixes."
576+ ```
577+
578+ 4. **Save the output:**
579+ ```bash
580+ # Claude generates the GTM summary and saves it
581+ # Save to gtm-summary-${NEW_VERSION}.md
582+
583+ # Check if notification is needed
584+ if grep -q "No marketing-worthy features" gtm-summary-${NEW_VERSION}.md; then
585+ echo "✅ No GTM notification needed for this release"
586+ echo "📄 Summary saved to: gtm-summary-${NEW_VERSION}.md"
587+ else
588+ echo "📋 GTM summary saved to: gtm-summary-${NEW_VERSION}.md"
589+ echo "📤 Share this file in #gtm channel to notify the team"
590+ fi
591+ ```
592+
510593## Advanced Safety Features
511594
512595### Rollback Procedures
0 commit comments