Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Dynamic PR Preview Environments

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [PROJECT_ID]
  • [SERVICE_NAME]
  • [DOMAIN_SUFFIX]
dynamic-pr-preview-environments.txt
Design a GitHub Actions workflow that creates dynamic preview environments for every Pull Request. Requirements: 1) Trigger on PR open or synchronize. 2) Build a containerized version of the app. 3) Deploy it to a unique URL (e.g., pr-number.[DOMAIN_SUFFIX]). 4) Comment the preview URL on the PR. 5) Include a cleanup job that triggers when the PR is closed to destroy the preview environment and free up resources in [PROJECT_ID].

Example Output

"A complex GitOps YAML managing the lifecycle of ephemeral environments for feature validation and design review."