Skip to content

Commit 2f5c16e

Browse files
authored
Sd 607 provide the compelete name of target cluster in promotion prs (#21)
* Configure mirrord to 'steal' traffic. Stealing traffic means the Telefonistka instance running in the cluster will not receive the webhook, only the local instance will. This is so that we only see results from our local instance. * Change format of promotion path comment. The promotion path used to look like 'source/'->['path1/','path2/']. This PR changes it to look like: 'source/'-> 'path1/' 'path2/' * Remove truncation of sp in promotionPRBody * Add test for prBody * Run gofumpt * Add md extension to golden file * Addjusted prBody and matching test/goldenfile * Remove dead code
1 parent 9ab1dd8 commit 2f5c16e

File tree

6 files changed

+69
-114
lines changed

6 files changed

+69
-114
lines changed

go.mod

+2-13
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/shurcooL/githubv4 v0.0.0-20240120211514-18a1ae0e79dc
2424
github.com/sirupsen/logrus v1.9.3
2525
github.com/spf13/cobra v1.8.0
26+
github.com/stretchr/testify v1.9.0
2627
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
2728
golang.org/x/oauth2 v0.19.0
2829
google.golang.org/grpc v1.63.2
@@ -34,7 +35,6 @@ require (
3435
require (
3536
cloud.google.com/go/compute v1.25.1 // indirect
3637
cloud.google.com/go/compute/metadata v0.2.3 // indirect
37-
code.gitea.io/sdk/gitea v0.15.1 // indirect
3838
dario.cat/mergo v1.0.0 // indirect
3939
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
4040
github.com/MakeNowJust/heredoc v1.0.0 // indirect
@@ -46,7 +46,6 @@ require (
4646
github.com/a8m/envsubst v1.4.2 // indirect
4747
github.com/alecthomas/participle/v2 v2.1.1 // indirect
4848
github.com/argoproj/pkg v0.13.7-0.20230626144333-d56162821bd1 // indirect
49-
github.com/aws/aws-sdk-go v1.50.8 // indirect
5049
github.com/beorn7/perks v1.0.1 // indirect
5150
github.com/blang/semver/v4 v4.0.0 // indirect
5251
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
@@ -69,9 +68,7 @@ require (
6968
github.com/fatih/camelcase v1.0.0 // indirect
7069
github.com/fatih/color v1.16.0 // indirect
7170
github.com/felixge/httpsnoop v1.0.4 // indirect
72-
github.com/fsnotify/fsnotify v1.6.0 // indirect
7371
github.com/fvbommel/sortorder v1.1.0 // indirect
74-
github.com/gfleury/go-bitbucket-v1 v0.0.0-20220301131131-8e7ed04b843e // indirect
7572
github.com/go-errors/errors v1.5.1 // indirect
7673
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
7774
github.com/go-git/go-billy/v5 v5.5.0 // indirect
@@ -93,7 +90,6 @@ require (
9390
github.com/google/btree v1.1.2 // indirect
9491
github.com/google/gnostic v0.7.0 // indirect
9592
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
96-
github.com/google/go-github/v35 v35.3.0 // indirect
9793
github.com/google/go-github/v56 v56.0.0 // indirect
9894
github.com/google/go-github/v60 v60.0.0 // indirect
9995
github.com/google/go-querystring v1.1.0 // indirect
@@ -108,32 +104,26 @@ require (
108104
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
109105
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
110106
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
111-
github.com/hashicorp/go-version v1.2.1 // indirect
112107
github.com/huandu/xstrings v1.3.3 // indirect
113108
github.com/imdario/mergo v0.3.16 // indirect
114109
github.com/inconshreveable/mousetrap v1.1.0 // indirect
115110
github.com/itchyny/gojq v0.12.13 // indirect
116111
github.com/itchyny/timefmt-go v0.1.5 // indirect
117112
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
118-
github.com/jeremywohl/flatten v1.0.1 // indirect
119113
github.com/jinzhu/copier v0.4.0 // indirect
120-
github.com/jmespath/go-jmespath v0.4.0 // indirect
121114
github.com/jonboulle/clockwork v0.4.0 // indirect
122115
github.com/josharian/intern v1.0.0 // indirect
123116
github.com/json-iterator/go v1.1.12 // indirect
124117
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
125118
github.com/kevinburke/ssh_config v1.2.0 // indirect
126119
github.com/klauspost/compress v1.17.8 // indirect
127-
github.com/ktrysmt/go-bitbucket v0.9.67 // indirect
128120
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
129121
github.com/magiconair/properties v1.8.7 // indirect
130122
github.com/mailru/easyjson v0.7.7 // indirect
131123
github.com/mattn/go-colorable v0.1.13 // indirect
132124
github.com/mattn/go-isatty v0.0.20 // indirect
133-
github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5 // indirect
134125
github.com/mitchellh/copystructure v1.0.0 // indirect
135126
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
136-
github.com/mitchellh/mapstructure v1.5.0 // indirect
137127
github.com/mitchellh/reflectwalk v1.0.0 // indirect
138128
github.com/moby/spdystream v0.2.0 // indirect
139129
github.com/moby/term v0.5.0 // indirect
@@ -150,6 +140,7 @@ require (
150140
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
151141
github.com/pjbgf/sha1cd v0.3.0 // indirect
152142
github.com/pkg/errors v0.9.1 // indirect
143+
github.com/pmezard/go-difflib v1.0.0 // indirect
153144
github.com/prometheus/client_model v0.6.1 // indirect
154145
github.com/prometheus/common v0.52.3 // indirect
155146
github.com/prometheus/procfs v0.13.0 // indirect
@@ -168,7 +159,6 @@ require (
168159
github.com/vmihailenco/go-tinylfu v0.2.2 // indirect
169160
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
170161
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
171-
github.com/xanzy/go-gitlab v0.91.1 // indirect
172162
github.com/xanzy/ssh-agent v0.3.3 // indirect
173163
github.com/xlab/treeprint v1.2.0 // indirect
174164
github.com/yuin/gopher-lua v1.1.1 // indirect
@@ -187,7 +177,6 @@ require (
187177
golang.org/x/time v0.5.0 // indirect
188178
golang.org/x/tools v0.21.0 // indirect
189179
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
190-
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
191180
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
192181
google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda // indirect
193182
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect

0 commit comments

Comments
 (0)