8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5111335 commit 2470bc3Copy full SHA for 2470bc3
command/please.go
@@ -3,6 +3,7 @@ package command
3
import (
4
"context"
5
"errors"
6
+ "fmt"
7
"log"
8
"os"
9
"os/exec"
@@ -53,15 +54,9 @@ func CmdPlease(c *cli.Context) (err error) {
53
54
}
55
56
- // If the environment is not set, set as follows:
57
- // * branch is master: production
58
- // * otherwise: pr-preview
59
- if environment == "" {
60
- if branch == "master" {
61
- environment = "production"
62
- } else {
63
- environment = "pr-preview"
64
- }
+ // Override the deployment target on pull-request
+ if pr > 0 {
+ environment = fmt.Sprintf("pr-%d", pr)
65
66
67
ctx := context.Background()
0 commit comments