From 0c1372955c1b9d5acd86586116c566a51ec89ce1 Mon Sep 17 00:00:00 2001 From: Daniel Liao <10663736+liaodaniel@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:19:40 +1100 Subject: [PATCH] Address PR comments Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com> --- github/repos_properties.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/github/repos_properties.go b/github/repos_properties.go index 66ec2b65ee4..5a8626c4530 100644 --- a/github/repos_properties.go +++ b/github/repos_properties.go @@ -1,3 +1,8 @@ +// Copyright 2023 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package github import ( @@ -5,13 +10,13 @@ import ( "fmt" ) -// GetAllCustomPropertyValues gets all custom properties values that are set for a repository. +// GetAllCustomPropertyValues gets all custom property values that are set for a repository. // // GitHub API docs: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository // //meta:operation GET /repos/{owner}/{repo}/properties/values -func (s *RepositoriesService) GetAllCustomPropertyValues(ctx context.Context, org string, repo string) ([]*CustomPropertyValue, *Response, error) { - u := fmt.Sprintf("repos/%s/%s/properties/values", org, repo) +func (s *RepositoriesService) GetAllCustomPropertyValues(ctx context.Context, org, repo string) ([]*CustomPropertyValue, *Response, error) { + u := fmt.Sprintf("repos/%v/%v/properties/values", org, repo) req, err := s.client.NewRequest("GET", u, nil) if err != nil {