Skip to content

Commit fe1cbc5

Browse files
authored
Rename module after forking (#1)
* Rename module after forking * fix imports
1 parent 81ada33 commit fe1cbc5

File tree

11 files changed

+19
-18
lines changed

11 files changed

+19
-18
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: npm install -g danger
2020

2121
- name: Install danger-go
22-
run: go install github.com/moolmanruan/danger-go/cmd/[email protected] # match version used in build/ci
22+
run: go install github.com/luno/danger-go/cmd/[email protected] # match version used in build/ci
2323

2424
- name: Check versions
2525
run: |

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
# Danger in Go
33

4-
This is a Go version of the popular Danger tool.
4+
This is a Go version of the popular [Danger](https://danger.systems/) tool.
55

66
## Installation of command line tool
77

88
```shell
9-
go install github.com/moolmanruan/danger-go/cmd/danger-go@latest
9+
go install github.com/luno/danger-go/cmd/danger-go@latest
1010
yarn global add danger
1111
```
1212

@@ -22,7 +22,7 @@ package main
2222
import (
2323
"fmt"
2424

25-
"github.com/moolmanruan/danger-go"
25+
"github.com/luno/danger-go"
2626
)
2727

2828
func Run(d *danger.T, pr danger.DSL) {
@@ -32,7 +32,7 @@ func Run(d *danger.T, pr danger.DSL) {
3232
3. Run the following in the directory:
3333
```shell
3434
go mod init dangerfile
35-
go get github.com/moolmanruan/danger-go
35+
go get github.com/luno/danger-go
3636
go mod tidy
3737
```
3838

api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66

7-
dangerJs "github.com/moolmanruan/danger-go/danger-js"
7+
dangerJs "github.com/luno/danger-go/danger-js"
88
)
99

1010
// DSL wraps the DSL received from danger JS. This allows dangerfiles to only

api_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package danger_test
33
import (
44
"testing"
55

6-
"github.com/moolmanruan/danger-go"
76
"github.com/stretchr/testify/require"
7+
8+
"github.com/luno/danger-go"
89
)
910

1011
func TestResults(t *testing.T) {

build/ci/dangerfile.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
6-
"github.com/moolmanruan/danger-go"
75
)
86

97
// Run is invoked by danger-go

build/ci/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module danger-go/dangerfile
22

33
go 1.19
44

5-
require github.com/moolmanruan/danger-go v0.1.0
5+
require github.com/luno/danger-go v0.1.0

build/ci/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2-
github.com/moolmanruan/danger-go v0.1.0 h1:SYIi2FAWIWukDMQTjeIvndavigbZWM8CDtSXvpFkKZE=
3-
github.com/moolmanruan/danger-go v0.1.0/go.mod h1:JIzQHXs5iGbWszdpQfwuEiVPd0Ees93yjzDqBUMQl6c=
2+
github.com/luno/danger-go v0.1.0 h1:SYIi2FAWIWukDMQTjeIvndavigbZWM8CDtSXvpFkKZE=
3+
github.com/luno/danger-go v0.1.0/go.mod h1:JIzQHXs5iGbWszdpQfwuEiVPd0Ees93yjzDqBUMQl6c=
44
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
55
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
66
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

cmd/danger-go/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"log"
66
"os"
77

8-
"github.com/moolmanruan/danger-go/cmd/danger-go/runner"
9-
dangerJs "github.com/moolmanruan/danger-go/danger-js"
8+
"github.com/luno/danger-go/cmd/danger-go/runner"
9+
dangerJs "github.com/luno/danger-go/danger-js"
1010
)
1111

1212
const version = "v0.1.0"

cmd/danger-go/main_internal_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/stretchr/testify/require"
99
)
1010

11-
const cliPkg = "github.com/moolmanruan/danger-go/cmd/danger-go"
11+
const cliPkg = "github.com/luno/danger-go/cmd/danger-go"
1212

1313
func execute(args ...string) (string, error) {
1414
cmdArgs := append([]string{"run", cliPkg}, args...)

cmd/danger-go/runner/runner.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"plugin"
1616
"strings"
1717

18-
"github.com/moolmanruan/danger-go"
19-
"github.com/moolmanruan/danger-go/danger-js"
18+
"github.com/luno/danger-go"
19+
dangerJs "github.com/luno/danger-go/danger-js"
2020
)
2121

2222
const dangerURLPrefix = "danger://dsl/"

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/moolmanruan/danger-go
1+
module github.com/luno/danger-go
22

33
go 1.19
44

@@ -9,3 +9,5 @@ require (
99
github.com/pmezard/go-difflib v1.0.0 // indirect
1010
gopkg.in/yaml.v3 v3.0.1 // indirect
1111
)
12+
13+
replace github.com/luno/danger-go v0.0.0-20230121134440-81ada33efa08 => github.com/moolmanruan/danger-go v0.1.0

0 commit comments

Comments
 (0)