Skip to content

Conversation

Copy link

Copilot AI commented Nov 25, 2025

✨ Summary

Enhances the Netlify deployment preview workflow with comprehensive error handling, deployment tracking, and automated MDX file freshness analysis.

Netlify Workflow Improvements

Deployment Triggers

  • Added pull_request event support (open/synchronize) alongside manual netlify build comment trigger
  • Team membership validation now skipped for automatic PR triggers (only enforced for manual comments)

Pre-deployment Validation

  • Netlify API token validation before triggering builds
  • Concurrent deployment detection prevents conflicts
  • Posts actionable error comments for token expiration or ongoing builds

Deployment Discovery & Monitoring

  • Commit-based deployment matching with branch-based fallback
  • 45-second initial wait, then 10 polling attempts with 15s intervals
  • Status monitoring polls every 90s for up to 30 minutes
  • Real-time PR comment updates with IST timestamps

Outcome Handling

  • Success: Posts preview URL with deployment logs
  • Failure: Posts critical DO-NOT-MERGE warning with error details
  • Timeout: Provides manual check instructions

MDX Freshness Tracking

New scripts/listMdxFreshness.mjs analyzes last commit dates for all tracked MDX files:

  • Excludes release notes and style guides
  • Groups by age buckets (0-6, 6-12, 12-18, 18-24, 24+ months)
  • Generates markdown report with sortable tables

🖼️ Screenshots

N/A - Workflow automation changes

🔮 Engineering checklist

  • Code changes are self-documenting or clearly commented/documented
  • No new warnings or errors where added to the browser or build console
  • Synthetics tests have been considered for any changes that might trigger false positives

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Fix build break test with updated deadline Enhanced Netlify deployment workflow with robust monitoring and token validation Nov 25, 2025
Copilot finished work on behalf of pranav-new-relic November 25, 2025 20:06
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