Skip to content

Commit 1568a48

Browse files
authored
Fix url formatting
1 parent 6036235 commit 1568a48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/github/projects.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ func ListProjects(getClient GetClientFn, t translations.TranslationHelperFunc) (
5050

5151
var url string
5252
if ownerType == "organization" {
53-
url = fmt.Sprintf("/orgs/%s/projectsV2", owner)
53+
url = fmt.Sprintf("orgs/%s/projectsV2", owner)
5454
} else {
55-
url = fmt.Sprintf("/users/%s/projectsV2", owner)
55+
url = fmt.Sprintf("users/%s/projectsV2", owner)
5656
}
5757
projects := []github.ProjectV2{}
5858

@@ -130,7 +130,7 @@ func GetProject(getClient GetClientFn, t translations.TranslationHelperFunc) (to
130130
if ownerType == "organization" {
131131
url = fmt.Sprintf("orgs/%s/projectsV2/%d", owner, projectNumber)
132132
} else {
133-
url = fmt.Sprintf("/users/%s/projectsV2/%d", owner, projectNumber)
133+
url = fmt.Sprintf("users/%s/projectsV2/%d", owner, projectNumber)
134134
}
135135

136136
projects := []github.ProjectV2{}

0 commit comments

Comments
 (0)