Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit d34f629

Browse files
author
Alexander Matyushentsev
authored
refactor: move pkg to github.com/argoproj/notifications-engine (#260)
Signed-off-by: Alexander Matyushentsev <[email protected]>
1 parent a2ec42c commit d34f629

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+51
-3588
lines changed

bot/server.go

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

11-
"github.com/argoproj-labs/argocd-notifications/pkg/controller"
11+
"github.com/argoproj/notifications-engine/pkg/controller"
1212

1313
"github.com/argoproj-labs/argocd-notifications/shared/k8s"
1414

bot/server_test.go

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

6-
"github.com/argoproj-labs/argocd-notifications/pkg/controller"
6+
"github.com/argoproj/notifications-engine/pkg/controller"
77

88
. "github.com/argoproj-labs/argocd-notifications/testing"
99

bot/slack/verify_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/argoproj-labs/argocd-notifications/pkg"
9-
"github.com/argoproj-labs/argocd-notifications/pkg/services"
108
"github.com/argoproj-labs/argocd-notifications/shared/settings"
9+
"github.com/argoproj/notifications-engine/pkg"
10+
"github.com/argoproj/notifications-engine/pkg/services"
1111

1212
"github.com/stretchr/testify/assert"
1313
)

cmd/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88
"strings"
99

1010
"github.com/argoproj-labs/argocd-notifications/controller"
11-
"github.com/argoproj-labs/argocd-notifications/pkg/services"
1211
"github.com/argoproj-labs/argocd-notifications/shared/argocd"
1312
"github.com/argoproj-labs/argocd-notifications/shared/k8s"
1413
"github.com/argoproj-labs/argocd-notifications/shared/legacy"
1514
"github.com/argoproj-labs/argocd-notifications/shared/settings"
1615

16+
"github.com/argoproj/notifications-engine/pkg/services"
1717
"github.com/prometheus/client_golang/prometheus"
1818
"github.com/prometheus/client_golang/prometheus/promhttp"
1919
log "github.com/sirupsen/logrus"

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"path/filepath"
77

88
argocert "github.com/argoproj/argo-cd/v2/util/cert"
9+
"github.com/argoproj/notifications-engine/pkg/util/http"
910
"github.com/spf13/cobra"
1011

1112
"github.com/argoproj-labs/argocd-notifications/cmd/tools"
12-
"github.com/argoproj-labs/argocd-notifications/pkg/util/http"
1313
)
1414

1515
func init() {

cmd/tools/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"strings"
77
"text/tabwriter"
88

9+
"github.com/argoproj/notifications-engine/pkg/services"
10+
"github.com/argoproj/notifications-engine/pkg/util/misc"
911
"github.com/spf13/cobra"
1012

1113
"github.com/argoproj-labs/argocd-notifications/expr"
12-
"github.com/argoproj-labs/argocd-notifications/pkg/services"
13-
"github.com/argoproj-labs/argocd-notifications/pkg/util/misc"
1414
"github.com/argoproj-labs/argocd-notifications/shared/legacy"
1515
)
1616

cmd/tools/tools_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/argoproj-labs/argocd-notifications/pkg/util/misc"
8-
7+
"github.com/argoproj/notifications-engine/pkg/util/misc"
98
"github.com/stretchr/testify/assert"
109
)
1110

cmd/tools/trigger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"text/tabwriter"
88

99
"github.com/argoproj-labs/argocd-notifications/expr"
10-
"github.com/argoproj-labs/argocd-notifications/pkg/triggers"
11-
"github.com/argoproj-labs/argocd-notifications/pkg/util/misc"
1210

11+
"github.com/argoproj/notifications-engine/pkg/triggers"
12+
"github.com/argoproj/notifications-engine/pkg/util/misc"
1313
"github.com/spf13/cobra"
1414
)
1515

controller/controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import (
1010
"time"
1111

1212
"github.com/argoproj-labs/argocd-notifications/expr"
13-
"github.com/argoproj-labs/argocd-notifications/pkg"
14-
"github.com/argoproj-labs/argocd-notifications/pkg/controller"
15-
"github.com/argoproj-labs/argocd-notifications/pkg/services"
16-
"github.com/argoproj-labs/argocd-notifications/pkg/triggers"
1713
"github.com/argoproj-labs/argocd-notifications/shared/k8s"
1814
"github.com/argoproj-labs/argocd-notifications/shared/legacy"
1915
"github.com/argoproj-labs/argocd-notifications/shared/settings"
2016

17+
"github.com/argoproj/notifications-engine/pkg"
18+
"github.com/argoproj/notifications-engine/pkg/controller"
19+
"github.com/argoproj/notifications-engine/pkg/services"
20+
"github.com/argoproj/notifications-engine/pkg/triggers"
2121
log "github.com/sirupsen/logrus"
2222
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2323
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

controller/controller_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
"testing"
77
"time"
88

9+
"github.com/argoproj-labs/argocd-notifications/shared/legacy"
10+
"github.com/argoproj-labs/argocd-notifications/shared/settings"
11+
. "github.com/argoproj-labs/argocd-notifications/testing"
912
"github.com/golang/mock/gomock"
1013
"github.com/sirupsen/logrus"
1114
"github.com/stretchr/testify/assert"
@@ -15,14 +18,11 @@ import (
1518
"k8s.io/client-go/dynamic"
1619
kubetesting "k8s.io/client-go/testing"
1720

18-
"github.com/argoproj-labs/argocd-notifications/pkg"
19-
"github.com/argoproj-labs/argocd-notifications/pkg/controller"
20-
"github.com/argoproj-labs/argocd-notifications/pkg/mocks"
21-
"github.com/argoproj-labs/argocd-notifications/pkg/services"
22-
"github.com/argoproj-labs/argocd-notifications/pkg/triggers"
23-
"github.com/argoproj-labs/argocd-notifications/shared/legacy"
24-
"github.com/argoproj-labs/argocd-notifications/shared/settings"
25-
. "github.com/argoproj-labs/argocd-notifications/testing"
21+
"github.com/argoproj/notifications-engine/pkg"
22+
"github.com/argoproj/notifications-engine/pkg/controller"
23+
"github.com/argoproj/notifications-engine/pkg/mocks"
24+
"github.com/argoproj/notifications-engine/pkg/services"
25+
"github.com/argoproj/notifications-engine/pkg/triggers"
2626
)
2727

2828
var (

0 commit comments

Comments
 (0)