Skip to content

Commit

Permalink
godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Sep 20, 2023
1 parent 9306ab4 commit 3aa3e33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type markdownRequest struct {
Context *string `json:"context,omitempty"`
}

// MarkdownService provides access to markdown-related functions in the GitHub API.
type MarkdownService service

// Markdown renders an arbitrary Markdown document.
Expand Down Expand Up @@ -67,6 +68,7 @@ func (s *MarkdownService) Markdown(ctx context.Context, text string, opts *Markd
return buf.String(), resp, nil
}

// EmojisService provides access to emoji-related functions in the GitHub API.
type EmojisService service

// ListEmojis returns the emojis available to use on GitHub.
Expand Down Expand Up @@ -106,6 +108,7 @@ func (c *CodeOfConduct) String() string {
return Stringify(c)
}

// CodesOfConductService provides access to code-of-conduct-related functions in the GitHub API.
type CodesOfConductService service

// ListCodesOfConduct returns all codes of conduct.
Expand Down Expand Up @@ -163,6 +166,7 @@ func (c *Client) GetCodeOfConduct(ctx context.Context, key string) (*CodeOfCondu
return c.CodesOfConduct.GetCodeOfConduct(ctx, key)

Check warning on line 166 in github/misc.go

View check run for this annotation

Codecov / codecov/patch

github/misc.go#L165-L166

Added lines #L165 - L166 were not covered by tests
}

// MetaService provides access to functions in the GitHub API that GitHub categorizes as "meta".
type MetaService service

// APIMeta represents metadata about the GitHub API.
Expand Down

0 comments on commit 3aa3e33

Please sign in to comment.