Skip to content

Commit

Permalink
fix: Adds ReturnData to pull request deploy (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Feb 20, 2024
1 parent af1bc20 commit af8dcdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ This pullrequest may not already exist as an environment in lagoon.`,
baseBranchRef == "" || headBranchName == "" || headBranchRef == "" {
return fmt.Errorf("Missing arguments: Project name, title, number, baseBranchName, baseBranchRef, headBranchName, or headBranchRef is not defined")
}
returnData, err := cmd.Flags().GetBool("returnData")
if err != nil {
return err
}
if yesNo(fmt.Sprintf("You are attempting to deploy pull request '%v' for project '%s', are you sure?", prNumber, cmdProjectName)) {
current := lagoonCLIConfig.Current
lc := client.New(
Expand All @@ -234,6 +238,7 @@ This pullrequest may not already exist as an environment in lagoon.`,
BaseBranchRef: baseBranchRef,
HeadBranchName: headBranchName,
HeadBranchRef: headBranchRef,
ReturnData: returnData,
}, lc)
if err != nil {
return err
Expand Down

0 comments on commit af8dcdf

Please sign in to comment.