Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
  • Loading branch information
liaodaniel committed Dec 6, 2023
1 parent e555328 commit 0c13729
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions github/repos_properties.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
// 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 (
"context"
"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 {
Expand Down

0 comments on commit 0c13729

Please sign in to comment.