Skip to content

Commit 5a0995d

Browse files
authored
feat: Upgrades to v2 packages to track with v2 git tag (#198)
Signed-off-by: John McBride <john@opensauced.pizza>
1 parent 503b3bd commit 5a0995d

File tree

32 files changed

+71
-73
lines changed

32 files changed

+71
-73
lines changed

api/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/cli/browser"
2020
"github.com/go-chi/chi/v5"
2121

22-
"github.com/open-sauced/pizza-cli/pkg/config"
22+
"github.com/open-sauced/pizza-cli/v2/pkg/config"
2323
)
2424

2525
// The success HTML file is embedded directly as a var.

api/client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"net/http"
55
"time"
66

7-
"github.com/open-sauced/pizza-cli/api/services/contributors"
8-
"github.com/open-sauced/pizza-cli/api/services/histogram"
9-
"github.com/open-sauced/pizza-cli/api/services/repository"
10-
"github.com/open-sauced/pizza-cli/api/services/workspaces"
7+
"github.com/open-sauced/pizza-cli/v2/api/services/contributors"
8+
"github.com/open-sauced/pizza-cli/v2/api/services/histogram"
9+
"github.com/open-sauced/pizza-cli/v2/api/services/repository"
10+
"github.com/open-sauced/pizza-cli/v2/api/services/workspaces"
1111
)
1212

1313
// Client is the API client for OpenSauced API

api/services/contributors/contributors_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/open-sauced/pizza-cli/api/mock"
14-
"github.com/open-sauced/pizza-cli/api/services"
13+
"github.com/open-sauced/pizza-cli/v2/api/mock"
14+
"github.com/open-sauced/pizza-cli/v2/api/services"
1515
)
1616

1717
func TestNewPullrequestContributors(t *testing.T) {

api/services/contributors/spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package contributors
33
import (
44
"time"
55

6-
"github.com/open-sauced/pizza-cli/api/services"
6+
"github.com/open-sauced/pizza-cli/v2/api/services"
77
)
88

99
type DbContributor struct {

api/services/histogram/histogram_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/open-sauced/pizza-cli/api/mock"
13+
"github.com/open-sauced/pizza-cli/v2/api/mock"
1414
)
1515

1616
func TestPrsHistogram(t *testing.T) {

api/services/repository/repository_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/open-sauced/pizza-cli/api/mock"
14-
"github.com/open-sauced/pizza-cli/api/services"
13+
"github.com/open-sauced/pizza-cli/v2/api/mock"
14+
"github.com/open-sauced/pizza-cli/v2/api/services"
1515
)
1616

1717
func TestFindOneByOwnerAndRepo(t *testing.T) {

api/services/workspaces/spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package workspaces
33
import (
44
"time"
55

6-
"github.com/open-sauced/pizza-cli/api/services"
6+
"github.com/open-sauced/pizza-cli/v2/api/services"
77
)
88

99
type DbWorkspace struct {

api/services/workspaces/userlists/spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package userlists
33
import (
44
"time"
55

6-
"github.com/open-sauced/pizza-cli/api/services"
6+
"github.com/open-sauced/pizza-cli/v2/api/services"
77
)
88

99
type DbUserListContributor struct {

api/services/workspaces/userlists/userlists_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/open-sauced/pizza-cli/api/mock"
14-
"github.com/open-sauced/pizza-cli/api/services"
13+
"github.com/open-sauced/pizza-cli/v2/api/mock"
14+
"github.com/open-sauced/pizza-cli/v2/api/services"
1515
)
1616

1717
func TestGetUserLists(t *testing.T) {

api/services/workspaces/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/url"
99
"strconv"
1010

11-
"github.com/open-sauced/pizza-cli/api/services/workspaces/userlists"
11+
"github.com/open-sauced/pizza-cli/v2/api/services/workspaces/userlists"
1212
)
1313

1414
// Service is used to access the "v2/workspaces" endpoints and services.

0 commit comments

Comments
 (0)