Skip to content

Commit 47ba586

Browse files
zakiskchmouel
authored andcommitted
chore: Update jenkins-x/go-scm version
updated jenkins-x/go-scm version Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
1 parent 72791be commit 47ba586

File tree

7 files changed

+15
-25
lines changed

7 files changed

+15
-25
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/google/go-github/v69 v69.2.0
2020
github.com/google/go-github/v70 v70.0.0
2121
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
22-
github.com/jenkins-x/go-scm v1.14.56
22+
github.com/jenkins-x/go-scm v1.14.58
2323
github.com/jonboulle/clockwork v0.5.0
2424
github.com/juju/ansiterm v1.0.0
2525
github.com/ktrysmt/go-bitbucket v0.9.81

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
294294
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
295295
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
296296
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
297-
github.com/jenkins-x/go-scm v1.14.56 h1:+kKwbTv+6ymaxx4bBCEMLvkrjLmFkWX39qxYe4DDHPI=
298-
github.com/jenkins-x/go-scm v1.14.56/go.mod h1:1RPxLZndnvu31XhFZ+RTvXiHmMX70HkQ17bRupTQxGs=
297+
github.com/jenkins-x/go-scm v1.14.58 h1:R7ZxZySGkvz7UxPdvAeQxUy9esUwrrseSPoTbxmXNt8=
298+
github.com/jenkins-x/go-scm v1.14.58/go.mod h1:1RPxLZndnvu31XhFZ+RTvXiHmMX70HkQ17bRupTQxGs=
299299
github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I=
300300
github.com/jonboulle/clockwork v0.5.0/go.mod h1:3mZlmanh0g2NDKO5TWZVJAfofYk64M7XN3SzBPjZF60=
301301
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=

pkg/provider/bitbucketdatacenter/bitbucketdatacenter_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func TestGetTektonDir(t *testing.T) {
6767
path: ".tekton",
6868
testDirPath: "../../pipelineascode/testdata/pull_request/.tekton",
6969
wantDirAPIErr: true,
70-
wantErr: "cannot list content of .tekton directory: not Authorized",
70+
wantErr: "cannot list content of .tekton directory: No message available",
7171
},
7272
{
7373
name: "bad/get files api error",
7474
event: bbtest.MakeEvent(nil),
7575
path: ".tekton",
7676
testDirPath: "../../pipelineascode/testdata/pull_request/.tekton",
7777
wantFilesAPIErr: true,
78-
wantErr: "cannot find .tekton/pipeline.yaml inside the repo repository: not Authorized",
78+
wantErr: "cannot find .tekton/pipeline.yaml inside the repo repository: No message available",
7979
},
8080
}
8181
for _, tt := range tests {
@@ -260,7 +260,7 @@ func TestGetFileInsideRepo(t *testing.T) {
260260
"foo/file.txt": "hello moto",
261261
},
262262
targetbranch: "yolo",
263-
wantErr: "cannot find foo/file.txt inside the repo repository: not Authorized",
263+
wantErr: "cannot find foo/file.txt inside the repo repository: No message available",
264264
},
265265
}
266266
for _, tt := range tests {
@@ -658,7 +658,7 @@ func TestGetFiles(t *testing.T) {
658658
wantModifiedFilesCount: 0,
659659
wantRenamedFilesCount: 0,
660660
wantError: true,
661-
errMsg: "failed to list changes for commit IAMSHA123: not Authorized",
661+
errMsg: "failed to list changes for commit IAMSHA123: No message available",
662662
},
663663
{
664664
name: "good/pull_request event",
@@ -677,7 +677,7 @@ func TestGetFiles(t *testing.T) {
677677
wantModifiedFilesCount: 0,
678678
wantRenamedFilesCount: 0,
679679
wantError: true,
680-
errMsg: "failed to list changes for pull request: not Authorized",
680+
errMsg: "failed to list changes for pull request: No message available",
681681
},
682682
}
683683
for _, tt := range tests {

vendor/github.com/jenkins-x/go-scm/scm/client.go

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/jenkins-x/go-scm/scm/driver/stash/pr.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/jenkins-x/go-scm/scm/driver/stash/stash.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ github.com/hashicorp/golang-lru/simplelru
255255
# github.com/inconshreveable/mousetrap v1.1.0
256256
## explicit; go 1.18
257257
github.com/inconshreveable/mousetrap
258-
# github.com/jenkins-x/go-scm v1.14.56
258+
# github.com/jenkins-x/go-scm v1.14.58
259259
## explicit; go 1.22.3
260260
github.com/jenkins-x/go-scm/pkg/hmac
261261
github.com/jenkins-x/go-scm/scm

0 commit comments

Comments
 (0)