Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anishrajan25 authored Oct 2, 2023
1 parent 835aaa2 commit 110c448
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions github/security_advisories.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@ type RepoAdvisoryCreditDetailed struct {
State *string `json:"state,omitempty"`
}

// Permissions represent a team's permissions.
type Permissions struct {
Admin *bool `json:"admin,omitempty"`
Pull *bool `json:"pull,omitempty"`
Push *bool `json:"push,omitempty"`
Triage *bool `json:"triage,omitempty"`
Maintain *bool `json:"maintain,omitempty"`
}

// ListRepositorySecurityAdvisoriesOptions specifies the optional parameters to lists the repository security advisories.
// ListRepositorySecurityAdvisoriesOptions specifies the optional parameters to list the repository security advisories.
type ListRepositorySecurityAdvisoriesOptions struct {
ListCursorOptions

Expand Down Expand Up @@ -82,7 +73,7 @@ func (s *SecurityAdvisoriesService) RequestCVE(ctx context.Context, owner, repo,

// ListRepositorySecurityAdvisoriesForOrg lists the repository security advisories for an organization.
//
// Github API docs: https://docs.github.com/en/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories-for-an-organization
// GitHub API docs: https://docs.github.com/en/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories-for-an-organization
func (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisoriesForOrg(ctx context.Context, org string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) {
url := fmt.Sprintf("orgs/%v/security-advisories", org)
url, err := addOptions(url, opt)
Expand All @@ -106,8 +97,8 @@ func (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisoriesForOrg(ctx c

// ListRepositorySecurityAdvisories lists the security advisories in a repository.
//
// Github API docs: https://docs.github.com/en/enterprise-cloud@latest/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories
func (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisories(ctx context.Context, owner string, repo string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) {
// GitHub API docs: https://docs.github.com/en/enterprise-cloud@latest/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories
func (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisories(ctx context.Context, owner, repo string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) {
url := fmt.Sprintf("repos/%v/%v/security-advisories", owner, repo)
url, err := addOptions(url, opt)
if err != nil {
Expand Down

0 comments on commit 110c448

Please sign in to comment.