You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02: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
@@ -51,7 +51,7 @@ func pipelineStart(c *cli.Context) (err error) {
|
||||
}
|
||||
|
||||
pipelineArg := c.Args().Get(1)
|
||||
var number int
|
||||
var number int64
|
||||
if pipelineArg == "last" {
|
||||
// Fetch the pipeline number from the last pipeline
|
||||
pipeline, err := client.PipelineLast(repoID, "")
|
||||
@@ -63,7 +63,7 @@ func pipelineStart(c *cli.Context) (err error) {
|
||||
if len(pipelineArg) == 0 {
|
||||
return errors.New("missing step number")
|
||||
}
|
||||
number, err = strconv.Atoi(pipelineArg)
|
||||
number, err = strconv.ParseInt(pipelineArg, 10, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user