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

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