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?

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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠