Skip to content

Commit 4338ba0

Browse files
Apply suggestions from code review
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
1 parent bf3c0ec commit 4338ba0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github/repos.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,8 +2073,8 @@ func isBranchNotProtected(err error) bool {
20732073
// EnablePrivateReporting enables private reporting of vulnerabilities for a
20742074
// repository.
20752075
//
2076-
// Github API docs: https://docs.github.com/en/rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository
2077-
func (s *RepositoriesService) EnablePrivateReporting(ctx context.Context, owner string, repo string) (*Response, error) {
2076+
// GitHub API docs: https://docs.github.com/en/rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository
2077+
func (s *RepositoriesService) EnablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error) {
20782078
u := fmt.Sprintf("repos/%v/%v/private-vulnerability-reporting", owner, repo)
20792079

20802080
req, err := s.client.NewRequest("PUT", u, nil)
@@ -2093,8 +2093,8 @@ func (s *RepositoriesService) EnablePrivateReporting(ctx context.Context, owner
20932093
// DisablePrivateReporting disables private reporting of vulnerabilities for a
20942094
// repository.
20952095
//
2096-
// Github API docs: https://docs.github.com/en/rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository
2097-
func (s *RepositoriesService) DisablePrivateReporting(ctx context.Context, owner string, repo string) (*Response, error) {
2096+
// GitHub API docs: https://docs.github.com/en/rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository
2097+
func (s *RepositoriesService) DisablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error) {
20982098
u := fmt.Sprintf("repos/%v/%v/private-vulnerability-reporting", owner, repo)
20992099

21002100
req, err := s.client.NewRequest("DELETE", u, nil)

0 commit comments

Comments
 (0)