Skip to content

Commit 0828514

Browse files
committed
feat: replace casdoor/notify or nikoksr/notify to casdoor/notify2
1 parent d58ec4a commit 0828514

Some content is hidden

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

54 files changed

+159
-159
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/checkout@v4
2828
- name: Run semantic-release
29-
if: github.repository == 'casdoor/notify' && github.event_name == 'push'
29+
if: github.repository == 'casdoor/notify2' && github.event_name == 'push'
3030
run: |
3131
npm install --save-dev semantic-release@17.2.4
3232
npx semantic-release

.mockery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ with-expecter: true
22
mockname: "mock{{.InterfaceName}}"
33
filename: "mock_{{.InterfaceName | snakecase}}.go"
44
packages:
5-
github.com/nikoksr/notify:
5+
github.com/casdoor/notify2:
66
config:
77
dir: "{{.InterfaceDir}}"
88
inpackage: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mock:
4747
fmt:
4848
@golines --shorten-comments -m 120 -w .
4949
@gofumpt -w -l .
50-
@gci write --section Standard --section Default --section "Prefix(github.com/casdoor/notify)" .
50+
@gci write --section Standard --section Default --section "Prefix(github.com/casdoor/notify2)" .
5151
.PHONY: fmt
5252

5353
lint:

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
alt="notify logo"
66
/>
77

8-
[![codecov](https://codecov.io/gh/casdoor/notify/branch/main/graph/badge.svg?token=QDON0KO2WV)](https://codecov.io/gh/casdoor/notify)
9-
[![Go Report Card](https://goreportcard.com/badge/github.com/casdoor/notify)](https://goreportcard.com/report/github.com/casdoor/notify)
10-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/37fdff3c275c4a72a3a061f2d0ec5553)](https://www.codacy.com/gh/casdoor/notify/dashboard?utm_source=github.com&utm_medium=referral&utm_content=casdoor/notify&utm_campaign=Badge_Grade)
11-
[![Maintainability](https://api.codeclimate.com/v1/badges/b3afd7bf115341995077/maintainability)](https://codeclimate.com/github/casdoor/notify/maintainability)
12-
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/casdoor/notify)
8+
[![codecov](https://codecov.io/gh/casdoor/notify2/branch/main/graph/badge.svg?token=QDON0KO2WV)](https://codecov.io/gh/casdoor/notify2)
9+
[![Go Report Card](https://goreportcard.com/badge/github.com/casdoor/notify2)](https://goreportcard.com/report/github.com/casdoor/notify2)
10+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/37fdff3c275c4a72a3a061f2d0ec5553)](https://www.codacy.com/gh/casdoor/notify2/dashboard?utm_source=github.com&utm_medium=referral&utm_content=casdoor/notify2&utm_campaign=Badge_Grade)
11+
[![Maintainability](https://api.codeclimate.com/v1/badges/b3afd7bf115341995077/maintainability)](https://codeclimate.com/github/casdoor/notify2/maintainability)
12+
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/casdoor/notify2)
1313

1414
</div>
1515

@@ -32,7 +32,7 @@ Since Notify is highly dependent on the consistency of the supported external se
3232
## Install <a id="install"></a>
3333

3434
```sh
35-
go get -u github.com/casdoor/notify
35+
go get -u github.com/casdoor/notify2
3636
```
3737

3838
## Example usage <a id="usage"></a>
@@ -65,17 +65,17 @@ In this example, we use the global `Send()` function. Similar to most logging li
6565
libraries, we also recommend avoiding the use of global functions as much as possible. Instead, use one of our versatile
6666
constructor functions to create a new local `Notify` instance and pass it down the stream.
6767

68-
Read the [library docs](https://pkg.go.dev/github.com/casdoor/notify#section-documentation) for more information.
68+
Read the [library docs](https://pkg.go.dev/github.com/casdoor/notify2#section-documentation) for more information.
6969

7070
## Contributing <a id="contributing"></a>
7171

72-
Yes, please! Contributions of all kinds are very welcome! Feel free to check our [open issues](https://github.com/casdoor/notify/issues). Please also take a look at the [contribution guidelines](https://github.com/casdoor/notify/blob/main/CONTRIBUTING.md).
72+
Yes, please! Contributions of all kinds are very welcome! Feel free to check our [open issues](https://github.com/casdoor/notify2/issues). Please also take a look at the [contribution guidelines](https://github.com/casdoor/notify2/blob/main/CONTRIBUTING.md).
7373

74-
> Psst, don't forget to check the list of [missing services](https://github.com/casdoor/notify/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Aaffects%2Fservices+label%3A%22help+wanted%22+no%3Aassignee) waiting to be added by you or create [a new issue](https://github.com/casdoor/notify/issues/new?assignees=&labels=affects%2Fservices%2C+good+first+issue%2C+hacktoberfest%2C+help+wanted%2C+type%2Fenhancement%2C+up+for+grabs&template=service-request.md&title=feat%28service%29%3A+Add+%5BSERVICE+NAME%5D+service) if you want a new service to be added.
74+
> Psst, don't forget to check the list of [missing services](https://github.com/casdoor/notify2/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Aaffects%2Fservices+label%3A%22help+wanted%22+no%3Aassignee) waiting to be added by you or create [a new issue](https://github.com/casdoor/notify2/issues/new?assignees=&labels=affects%2Fservices%2C+good+first+issue%2C+hacktoberfest%2C+help+wanted%2C+type%2Fenhancement%2C+up+for+grabs&template=service-request.md&title=feat%28service%29%3A+Add+%5BSERVICE+NAME%5D+service) if you want a new service to be added.
7575
7676
## Supported services <a id="supported_services"></a>
7777

78-
> Click [here](https://github.com/casdoor/notify/issues/new?assignees=&labels=affects%2Fservices%2C+good+first+issue%2C+hacktoberfest%2C+help+wanted%2C+type%2Fenhancement%2C+up+for+grabs&template=service-request.md&title=feat%28service%29%3A+Add+%5BSERVICE+NAME%5D+service) to request a missing service.
78+
> Click [here](https://github.com/casdoor/notify2/issues/new?assignees=&labels=affects%2Fservices%2C+good+first+issue%2C+hacktoberfest%2C+help+wanted%2C+type%2Fenhancement%2C+up+for+grabs&template=service-request.md&title=feat%28service%29%3A+Add+%5BSERVICE+NAME%5D+service) to request a missing service.
7979
8080
| Service | Path | Credits | Status |
8181
|-----------------------------------------------------------------------------------|------------------------------------------|-------------------------------------------------------------------------------------------------|:------------------:|

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/casdoor/notify
1+
module github.com/casdoor/notify2
22

33
go 1.22.7
44

notify_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/google/go-cmp/cmp"
88

9-
"github.com/casdoor/notify/service/mail"
9+
"github.com/casdoor/notify2/service/mail"
1010
)
1111

1212
func TestNew(t *testing.T) {

send_test.go

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

7-
"github.com/casdoor/notify/service/mail"
7+
"github.com/casdoor/notify2/service/mail"
88
)
99

1010
func TestNotifySend(t *testing.T) {

service/bark/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Usage:
99
"context"
1010
"log"
1111
12-
"github.com/casdoor/notify"
13-
"github.com/casdoor/notify/service/bark"
12+
"github.com/casdoor/notify2"
13+
"github.com/casdoor/notify2/service/bark"
1414
)
1515
1616
func main() {

service/fcm/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Firebase Cloud Messaging (FCM)
22

3-
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/casdoor/notify/service/fcm)
3+
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/casdoor/notify2/service/fcm)
44

55
## Prerequisites
66

@@ -20,8 +20,8 @@ import (
2020
"context"
2121
"log"
2222

23-
"github.com/casdoor/notify"
24-
"github.com/casdoor/notify/service/fcm"
23+
"github.com/casdoor/notify2"
24+
"github.com/casdoor/notify2/service/fcm"
2525
)
2626

2727
func main() {

service/fcm/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Usage:
99
"context"
1010
"log"
1111
12-
"github.com/casdoor/notify"
13-
"github.com/casdoor/notify/service/fcm"
12+
"github.com/casdoor/notify2"
13+
"github.com/casdoor/notify2/service/fcm"
1414
)
1515
1616
func main() {

0 commit comments

Comments
 (0)