1
0
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:
runephilosof-karnovgroup
2023-11-02 12:21:11 +01:00
committed by GitHub
parent c75068920c
commit dbed835b6d
13 changed files with 36 additions and 35 deletions

View File

@@ -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
}