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

Commit

Permalink
Merge pull request #2055 from heidiberry/add-repositories-web-url
Browse files Browse the repository at this point in the history
Add Web URL to response when comparing in a repository
  • Loading branch information
svanharmelen authored Nov 3, 2024
2 parents 5836f13 + 4755022 commit 5548b4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ type Compare struct {
Diffs []*Diff `json:"diffs"`
CompareTimeout bool `json:"compare_timeout"`
CompareSameRef bool `json:"compare_same_ref"`
WebURL string `json:"web_url"`
}

func (c Compare) String() string {
Expand Down
1 change: 1 addition & 0 deletions repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ func TestRepositoriesService_Compare(t *testing.T) {
}},
CompareTimeout: false,
CompareSameRef: false,
WebURL: "https://gitlab.example.com/thedude/gitlab-foss/-/compare/ae73cb07c9eeaf35924a10f713b364d32b2dd34f...0b4bc9a49b562e85de7cc9e834518ea6828729b9",
}

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

0 comments on commit 5548b4f

Please sign in to comment.