Skip to content

Commit

Permalink
change to api types
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHuynh committed Aug 12, 2024
1 parent 458a7db commit 3784bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmd/vela-downstream/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main

import (
"fmt"
"github.com/go-vela/server/api/types"

Check failure on line 7 in cmd/vela-downstream/plugin.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-downstream/plugin.go#L7

File is not `goimports`-ed (goimports)
Raw output
cmd/vela-downstream/plugin.go:7: File is not `goimports`-ed (goimports)
	"github.com/go-vela/server/api/types"
"strings"
"time"

Expand Down Expand Up @@ -45,7 +46,7 @@ func (p *Plugin) Exec() error {
// iterate through each repo from provided configuration
for _, repo := range repos {
// create new build type to store last successful build
build := library.Build{}
build := types.Build{}

logrus.Infof("listing last 500 builds for %s", repo.GetFullName())

Expand All @@ -65,7 +66,7 @@ func (p *Plugin) Exec() error {
}

// create new slice of builds to store API results
builds := []library.Build{}
builds := []types.Build{}

// loop to capture *ALL* the builds
for {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ toolchain go1.22.6
require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/go-vela/sdk-go v0.24.0
github.com/go-vela/server v0.24.1
github.com/go-vela/types v0.24.0
github.com/joho/godotenv v1.5.1
github.com/sirupsen/logrus v1.9.3
Expand All @@ -20,7 +21,6 @@ require (
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/drone/envsubst v1.0.3 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-vela/server v0.24.1 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
github.com/google/go-querystring v1.1.0 // indirect
Expand Down

0 comments on commit 3784bb4

Please sign in to comment.