Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 5548b4f

Browse files
authored
Merge pull request #2055 from heidiberry/add-repositories-web-url
Add Web URL to response when comparing in a repository
2 parents 5836f13 + 4755022 commit 5548b4f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

repositories.go

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ type Compare struct {
209209
Diffs []*Diff `json:"diffs"`
210210
CompareTimeout bool `json:"compare_timeout"`
211211
CompareSameRef bool `json:"compare_same_ref"`
212+
WebURL string `json:"web_url"`
212213
}
213214

214215
func (c Compare) String() string {

repositories_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ func TestRepositoriesService_Compare(t *testing.T) {
281281
}},
282282
CompareTimeout: false,
283283
CompareSameRef: false,
284+
WebURL: "https://gitlab.example.com/thedude/gitlab-foss/-/compare/ae73cb07c9eeaf35924a10f713b364d32b2dd34f...0b4bc9a49b562e85de7cc9e834518ea6828729b9",
284285
}
285286

286287
c, resp, err := client.Repositories.Compare("12d65c8dd2b2676fa3ac47d955accc085a37a9c1", opt, nil)

0 commit comments

Comments
 (0)