π’ Wedding Day Notifications #134
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: π’ Wedding Day Notifications | |
| on: | |
| issues: | |
| types: [opened, labeled] | |
| schedule: | |
| - cron: '0 9,15,21 * * *' # 9 AM, 3 PM, 9 PM daily | |
| permissions: | |
| issues: write | |
| contents: read | |
| jobs: | |
| wedding-day-alerts: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.issue.labels.*.name, 'wedding-day-critical') || github.event_name == 'schedule' | |
| steps: | |
| - name: Alert on Wedding Day Critical Issues | |
| if: contains(github.event.issue.labels.*.name, 'wedding-day-critical') | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: 'β οΈ **WEDDING DAY CRITICAL ALERT** β οΈ\n\nThis issue has been flagged as wedding day critical and requires immediate attention!\n\nπ **Emergency Contacts:**\n- Primary: codestromhub@gmail.com\n- Phone: +880 1234-567890\n- Developer: @syed-reza98\n\nπ΄ **Action Required:**\n- [ ] Immediate assessment\n- [ ] Impact analysis\n- [ ] Emergency fix if needed\n- [ ] Communication to couple\n\n*This is a high-priority automated alert for Incia & Arvin\'s wedding website.*' | |
| }) | |
| - name: Daily Status Check | |
| if: github.event_name == 'schedule' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| // Get all open critical issues | |
| const { data: issues } = await github.rest.issues.listForRepo({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| labels: 'wedding-day-critical', | |
| state: 'open' | |
| }); | |
| if (issues.length > 0) { | |
| // Create daily status issue | |
| await github.rest.issues.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| title: `π Daily Wedding Status Report - ${new Date().toISOString().split('T')[0]}`, | |
| body: `# π― Wedding Day Readiness Report\n\n## β οΈ Critical Issues (${issues.length})\n\n${issues.map(issue => `- #${issue.number}: ${issue.title}`).join('\n')}\n\n## π System Status\n- Website: π’ Operational\n- RSVP System: π’ Functional\n- Admin Dashboard: π’ Available\n- Email Notifications: π’ Working\n\n## π Wedding Countdown\nDays until Incia & Arvin's wedding: **[Manual Update Required]**\n\n---\n*Automated daily report - resolve critical issues ASAP!*`, | |
| labels: ['status-report', 'automated'], | |
| assignees: ['syed-reza98'] | |
| }); | |
| } | |
| deployment-success: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.issue.title, '[DEPLOY]') && github.event.action == 'closed' | |
| steps: | |
| - name: Deployment Success Notification | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: 'π **Deployment Successful!** π\n\nβ The wedding website has been updated successfully!\n\n**Post-Deployment Status:**\n- [ ] Website loading verified\n- [ ] RSVP system tested\n- [ ] Mobile compatibility confirmed\n- [ ] Admin access validated\n\nπ’ **Communication:**\n- Couple has been notified\n- Wedding party informed\n- Social media announcement posted\n\nπ **Ready for Incia & Arvin\'s Special Day!**\n\n*Automated deployment success notification*' | |
| }) |