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
457 stars 115 forks source link

Filter automatic Github PR previews based on labels, name, files modified #3960

Open taraspos opened 1 day ago

taraspos commented 1 day ago

Before opening, please confirm:

Amplify Hosting feature

Git providers, Web previews

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

Amplify currently allows configuration of automatic PR previews for the GitHub provider. However, all pull requests targeting the configured branch are discovered automatically. We would like the ability to filter which PRs trigger automatic previews based on:

This feature is critical, especially considering the hard limit of 50 open branches per app^1.

We are using Amplify to generate Pull Request previews for documentation pages stored alongside the code in a large GitHub repository. Only certain Pull Requests modify documentation files. However, every Pull Request is automatically discovered, which brings us close to the limit of open branches and wastes build minutes.

Describe how you'd like this feature to work

Currently Amplify has a setting AutoBranchCreationPatterns that can be used to limit number of automatically discovered branches, however no such setting for Pull Request discovery^2.

Pull Request discovery should have similar configuration, where they can be filtered based on the PR name or labels. Having ability to discover PRs based on modified files will be immensely useful as well (similar to https://github.com/aws-amplify/amplify-hosting/issues/2336)

github-actions[bot] commented 1 day 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 day ago

Related to: