|
@@ -64,6 +64,7 @@ const CreateEnvironment: React.FC = () => {
|
|
|
projectID: currentProject.id,
|
|
projectID: currentProject.id,
|
|
|
clusterID: currentCluster.id,
|
|
clusterID: currentCluster.id,
|
|
|
environmentID: Number(environment_id),
|
|
environmentID: Number(environment_id),
|
|
|
|
|
+ branch: pullRequest.branch_from,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
setPorterYAMLErrors(res.data.errors ?? []);
|
|
setPorterYAMLErrors(res.data.errors ?? []);
|
|
@@ -161,7 +162,8 @@ const CreateEnvironment: React.FC = () => {
|
|
|
{selectedPR && porterYAMLErrors.length ? (
|
|
{selectedPR && porterYAMLErrors.length ? (
|
|
|
<ValidationErrorBannerWrapper>
|
|
<ValidationErrorBannerWrapper>
|
|
|
<Banner type="warning">
|
|
<Banner type="warning">
|
|
|
- We found some errors in the porter.yaml file on your branch.
|
|
|
|
|
|
|
+ We found some errors in the porter.yaml file in the
|
|
|
|
|
+ {selectedPR.branch_from} branch.
|
|
|
<LearnMoreButton onClick={() => setShowErrorsModal(true)}>
|
|
<LearnMoreButton onClick={() => setShowErrorsModal(true)}>
|
|
|
Learn more
|
|
Learn more
|
|
|
</LearnMoreButton>
|
|
</LearnMoreButton>
|