Why do the Amplify docs say it creates new branches for every PR?

0

In the AWS Amplify docs, it says:

"When EnableAutoBranchCreation is set to true, Amplify will automatically create a new branch in your app's connected Git repository whenever a new pull request is opened."

A developer has to create a branch BEFORE they create a pull request in the first place. Why would Amplify then create another branch? What's the point of this?

What I actually want is for Amplify to detect PRs and just deploy the contents of that branch (like Vercel or Netlify). I don't want extra branches being created. Is this possible?

Sam
已提問 7 個月前檢視次數 228 次
1 個回答
0

You're right that GIT branch is created by developer before the pull request can be done.

There is also branch in Applify application. Think this as deployment from certain GIT branch. EnableAutoBranchCreation creates this Amplify app branch automatically when new GIT branches are created. I think pull request previews is what you are looking for?

https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html

profile picture
專家
Kallu
已回答 7 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南