Skip to content

Commit 78608ec

Browse files
committed
fix tests 2
1 parent c29198b commit 78608ec

File tree

4 files changed

+11
-120
lines changed

4 files changed

+11
-120
lines changed

cli/cmd/digger/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,13 +998,14 @@ func TestGitHubNewPullRequestInMultiEnvProjectContext(t *testing.T) {
998998
}
999999

10001000
func TestGitHubTestPRCommandCaseInsensitivity(t *testing.T) {
1001+
defaultBranch := "defaultBranch"
10011002
issuenumber := 1
10021003
ghEvent := github.IssueCommentEvent{
10031004
Comment: &github.IssueComment{},
10041005
Issue: &github.Issue{
10051006
Number: &issuenumber,
10061007
},
1007-
Repo: &github.Repository{FullName: github.String("asdd")},
1008+
Repo: &github.Repository{FullName: github.String("asdd"), DefaultBranch: &defaultBranch},
10081009
Sender: &github.User{Login: github.String("login")},
10091010
}
10101011
comment := "DiGGeR PlAn"

cli/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ require (
9292
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
9393
github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef // indirect
9494
github.com/imdario/mergo v0.3.12 // indirect
95+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
9596
github.com/jessevdk/go-flags v1.5.0 // indirect
9697
github.com/jstemmer/go-junit-report v1.0.0 // indirect
9798
github.com/klauspost/compress v1.17.0 // indirect
@@ -117,6 +118,8 @@ require (
117118
github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d // indirect
118119
github.com/sourcegraph/jsonrpc2 v0.2.0 // indirect
119120
github.com/spf13/afero v1.11.0 // indirect
121+
github.com/spf13/cobra v1.8.0 // indirect
122+
github.com/spf13/pflag v1.0.5 // indirect
120123
github.com/terraform-linters/tflint v0.47.0 // indirect
121124
github.com/terraform-linters/tflint-plugin-sdk v0.17.0 // indirect
122125
github.com/terraform-linters/tflint-ruleset-terraform v0.4.0 // indirect

cli/go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:
764764
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
765765
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
766766
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
767+
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
768+
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
767769
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
768770
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
769771
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
@@ -1005,10 +1007,14 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO
10051007
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
10061008
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
10071009
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
1010+
github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
1011+
github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
10081012
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
10091013
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
10101014
github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
10111015
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
1016+
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
1017+
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
10121018
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
10131019
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
10141020
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=

0 commit comments

Comments
 (0)