Skip to content

Commit

Permalink
Rename module after forking (#1)
Browse files Browse the repository at this point in the history
* Rename module after forking

* fix imports
  • Loading branch information
echarrod authored Aug 23, 2023
1 parent 81ada33 commit fe1cbc5
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: npm install -g danger

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

- name: Check versions
run: |
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

# Danger in Go

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

## Installation of command line tool

```shell
go install github.com/moolmanruan/danger-go/cmd/danger-go@latest
go install github.com/luno/danger-go/cmd/danger-go@latest
yarn global add danger
```

Expand All @@ -22,7 +22,7 @@ package main
import (
"fmt"

"github.com/moolmanruan/danger-go"
"github.com/luno/danger-go"
)

func Run(d *danger.T, pr danger.DSL) {
Expand All @@ -32,7 +32,7 @@ func Run(d *danger.T, pr danger.DSL) {
3. Run the following in the directory:
```shell
go mod init dangerfile
go get github.com/moolmanruan/danger-go
go get github.com/luno/danger-go
go mod tidy
```

Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

dangerJs "github.com/moolmanruan/danger-go/danger-js"
dangerJs "github.com/luno/danger-go/danger-js"
)

// DSL wraps the DSL received from danger JS. This allows dangerfiles to only
Expand Down
3 changes: 2 additions & 1 deletion api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package danger_test
import (
"testing"

"github.com/moolmanruan/danger-go"
"github.com/stretchr/testify/require"

"github.com/luno/danger-go"
)

func TestResults(t *testing.T) {
Expand Down
2 changes: 0 additions & 2 deletions build/ci/dangerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package main

import (
"fmt"

"github.com/moolmanruan/danger-go"
)

// Run is invoked by danger-go
Expand Down
2 changes: 1 addition & 1 deletion build/ci/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module danger-go/dangerfile

go 1.19

require github.com/moolmanruan/danger-go v0.1.0
require github.com/luno/danger-go v0.1.0
4 changes: 2 additions & 2 deletions build/ci/go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/moolmanruan/danger-go v0.1.0 h1:SYIi2FAWIWukDMQTjeIvndavigbZWM8CDtSXvpFkKZE=
github.com/moolmanruan/danger-go v0.1.0/go.mod h1:JIzQHXs5iGbWszdpQfwuEiVPd0Ees93yjzDqBUMQl6c=
github.com/luno/danger-go v0.1.0 h1:SYIi2FAWIWukDMQTjeIvndavigbZWM8CDtSXvpFkKZE=
github.com/luno/danger-go v0.1.0/go.mod h1:JIzQHXs5iGbWszdpQfwuEiVPd0Ees93yjzDqBUMQl6c=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
4 changes: 2 additions & 2 deletions cmd/danger-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

"github.com/moolmanruan/danger-go/cmd/danger-go/runner"
dangerJs "github.com/moolmanruan/danger-go/danger-js"
"github.com/luno/danger-go/cmd/danger-go/runner"
dangerJs "github.com/luno/danger-go/danger-js"
)

const version = "v0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion cmd/danger-go/main_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
)

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

func execute(args ...string) (string, error) {
cmdArgs := append([]string{"run", cliPkg}, args...)
Expand Down
4 changes: 2 additions & 2 deletions cmd/danger-go/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"plugin"
"strings"

"github.com/moolmanruan/danger-go"
"github.com/moolmanruan/danger-go/danger-js"
"github.com/luno/danger-go"
dangerJs "github.com/luno/danger-go/danger-js"
)

const dangerURLPrefix = "danger://dsl/"
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/moolmanruan/danger-go
module github.com/luno/danger-go

go 1.19

Expand All @@ -9,3 +9,5 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/luno/danger-go v0.0.0-20230121134440-81ada33efa08 => github.com/moolmanruan/danger-go v0.1.0

0 comments on commit fe1cbc5

Please sign in to comment.