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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则