mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-23 14:46:21 +00:00
remove referene to external package
This commit is contained in:
parent
c9a3c86054
commit
254f826bca
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
"github.com/drone/drone-go/drone"
|
"github.com/drone/drone/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
var deployCmd = cli.Command{
|
var deployCmd = cli.Command{
|
||||||
|
@ -48,7 +48,7 @@ func deploy(c *cli.Context) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if build.Event == drone.EventPull {
|
if build.Event == model.EventPull {
|
||||||
return fmt.Errorf("Cannot deploy a pull request")
|
return fmt.Errorf("Cannot deploy a pull request")
|
||||||
}
|
}
|
||||||
env := c.Args().Get(2)
|
env := c.Args().Get(2)
|
||||||
|
|
Loading…
Reference in a new issue