Skip to content

Commit a526ef0

Browse files
author
Raphaël Benitte
committed
Merge pull request #28 from rande/add_web_url
add missing property from Project
2 parents c1f6531 + 864c220 commit a526ef0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

projects.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type Project struct {
5454
Namespace *Namespace `json:"namespace,omitempty"`
5555
SshRepoUrl string `json:"ssh_url_to_repo"`
5656
HttpRepoUrl string `json:"http_url_to_repo"`
57+
WebUrl string `json:"web_url"`
5758
}
5859

5960
func projects(u string, g *Gitlab) ([]*Project, error) {

projects_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func TestProject(t *testing.T) {
2222
assert.IsType(t, new(Project), project)
2323
assert.Equal(t, project.SshRepoUrl, "git@example.com:diaspora/diaspora-project-site.git")
2424
assert.Equal(t, project.HttpRepoUrl, "http://example.com/diaspora/diaspora-project-site.git")
25+
assert.Equal(t, project.WebUrl, "http://example.com/diaspora/diaspora-project-site")
2526
defer ts.Close()
2627
}
2728

0 commit comments

Comments
 (0)