aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

Amplify Github App posts empty preview link on the PR even if deployment was skipped because of `AMPLIFY_DIFF_DEPLOY` #3959

Open taraspos opened 1 month ago

taraspos commented 1 month ago

Before opening, please confirm:

Amplify Hosting feature

Deployments, Frontend builds, Git providers, Web previews

Is your feature request related to a problem? Please describe:

We are using Amplify Hosting with a connected GitHub provider.

When using Amplify Hosting with GitHub Pull Request previews, and when AMPLIFY_DIFF_DEPLOY is enabled, deployments are skipped as expected if no changes are detected. However, the GitHub Amplify App still posts a preview URL in Pull Request comments. This URL leads to a 404 error (or the Amplify welcome page) because nothing was deployed.

Describe how you'd like this feature to work

Amplify PR Preview URL should be posted only if deployment happened.

github-actions[bot] commented 1 month ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

taraspos commented 1 month ago

Related issues: