Skip to content

Commit

Permalink
Woodpecker-go: Pipeline.ID is int64
Browse files Browse the repository at this point in the history
  • Loading branch information
runephilosof-karnovgroup committed Nov 2, 2023
1 parent c750689 commit ede6427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion woodpecker-go/woodpecker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (c *client) RepoMove(repoID int64, newFullName string) error {
}

// Pipeline returns a repository pipeline by pipeline-id.
func (c *client) Pipeline(repoID int64, pipeline int) (*Pipeline, error) {
func (c *client) Pipeline(repoID int64, pipeline int64) (*Pipeline, error) {
out := new(Pipeline)
uri := fmt.Sprintf(pathPipeline, c.addr, repoID, pipeline)
err := c.get(uri, out)
Expand Down
2 changes: 1 addition & 1 deletion woodpecker-go/woodpecker/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type Client interface {
RepoDel(repoID int64) error

// Pipeline returns a repository pipeline by number.
Pipeline(repoID int64, pipeline int) (*Pipeline, error)
Pipeline(repoID int64, pipeline int64) (*Pipeline, error)

// PipelineLast returns the latest repository pipeline by branch. An empty branch
// will result in the default branch.
Expand Down

0 comments on commit ede6427

Please sign in to comment.