mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 08:49:15 +00:00
Use int64 for IDs in woodpecker client lib (#2703)
Switch from int to int64 for IDs
This commit is contained in:
committed by
GitHub
parent
c75068920c
commit
dbed835b6d
@@ -75,7 +75,7 @@ func deploy(c *cli.Context) error {
|
||||
status := c.String("status")
|
||||
|
||||
pipelineArg := c.Args().Get(1)
|
||||
var number int
|
||||
var number int64
|
||||
if pipelineArg == "last" {
|
||||
// Fetch the pipeline number from the last pipeline
|
||||
pipelines, berr := client.PipelineList(repoID)
|
||||
@@ -100,7 +100,7 @@ func deploy(c *cli.Context) error {
|
||||
return fmt.Errorf("Cannot deploy failure pipeline")
|
||||
}
|
||||
} else {
|
||||
number, err = strconv.Atoi(pipelineArg)
|
||||
number, err = strconv.ParseInt(pipelineArg, 10, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user