Skip to content

Commit 8ca51cc

Browse files
authored
module: Rename to reflect new package location (#18)
1 parent 1e1ead1 commit 8ca51cc

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
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/luno/danger-go/cmd/danger-go
22+
run: go install github.com/danger/golang/cmd/danger-go
2323

2424
- name: Check versions
2525
run: |

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is a Go version of the popular [Danger](https://danger.systems/) tool.
55
## Installation of command line tool
66

77
```shell
8-
go install github.com/luno/danger-go/cmd/danger-go@latest
8+
go install github.com/danger/golang/cmd/danger-go@latest
99
yarn global add danger
1010
```
1111

@@ -18,7 +18,7 @@ Requires [Danger JS](https://danger.systems/js) to run properly.
1818
```go
1919
package main
2020

21-
import "github.com/luno/danger-go"
21+
import "github.com/danger/golang"
2222

2323
func Run(d *danger.T, pr danger.DSL) {
2424
d.Message("danger-go is running!", "", 0)
@@ -27,7 +27,7 @@ func Run(d *danger.T, pr danger.DSL) {
2727
3. Run the following in the directory:
2828
```shell
2929
go mod init dangerfile
30-
go get github.com/luno/danger-go
30+
go get github.com/danger/golang
3131
go mod tidy
3232
```
3333

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/luno/danger-go/danger-js"
7+
dangerJs "github.com/danger/golang/danger-js"
88
)
99

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

api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/require"
77

8-
"github.com/luno/danger-go"
8+
danger "github.com/danger/golang"
99
)
1010

1111
func TestResults(t *testing.T) {

build/ci/dangerfile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/luno/danger-go"
6+
danger "github.com/danger/golang"
77
)
88

99
// Run is invoked by danger-go

build/ci/go.mod

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

33
go 1.21
44

5-
require github.com/luno/danger-go v0.3.0
5+
require github.com/danger/golang v0.3.0
66

7-
replace github.com/luno/danger-go => ../../
7+
replace github.com/danger/golang => ../../

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/luno/danger-go/cmd/danger-go/runner"
9-
dangerJs "github.com/luno/danger-go/danger-js"
8+
"github.com/danger/golang/cmd/danger-go/runner"
9+
dangerJs "github.com/danger/golang/danger-js"
1010
)
1111

1212
const version = "v0.3.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/luno/danger-go/cmd/danger-go"
11+
const cliPkg = "github.com/danger/golang/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/luno/danger-go"
19-
dangerJs "github.com/luno/danger-go/danger-js"
18+
danger "github.com/danger/golang"
19+
dangerJs "github.com/danger/golang/danger-js"
2020
)
2121

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

go.mod

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

33
go 1.21
44

0 commit comments

Comments
 (0)