Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programatically create PR preview #3963

Open
3 tasks done
taraspos opened this issue Oct 31, 2024 · 2 comments
Open
3 tasks done

Programatically create PR preview #3963

taraspos opened this issue Oct 31, 2024 · 2 comments
Labels
feature-request New feature or request

Comments

@taraspos
Copy link

taraspos commented Oct 31, 2024

Before opening, please confirm:

Amplify Hosting feature

Deployments, Frontend builds, Public APIs, Web previews

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

Due to lack of AWS Amplify functionality we can't effectively use PR Preview feature:

As result, we want to create PR previews using AWS CLI, but after testing we found that aws amplify create-branch call can't replicate behaviour of automatically created PR previews.

Even though it's possible to set --stage PULL_REQUEST resulting branch missing destinationBranch and sourceBranch properties and as result it's not being treated as PR branch by Amplify Hosting. It seems like those properties are not available in Public APIs.

Describe how you'd like this feature to work

AWS Amplify allows me to create PR preview branch via CLI, something like:

aws amplify create-branch --pr-id 3333 --enable-automatic-build

Which in turn will replicate behaviour of automatically generated PR preview, namely:

  1. Create PR preview branch
  2. Add status check to PR in git provider
  3. Publish PR preview URL in PR comments

Footnotes

  1. https://docs.aws.amazon.com/amplify/latest/userguide/quotas-chapter.html

@taraspos taraspos added the feature-request New feature or request label Oct 31, 2024
Copy link

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 taraspos changed the title Programatically create PR preview. Programatically create PR preview Oct 31, 2024
@taraspos
Copy link
Author

taraspos commented Nov 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant