Skip to content

Commit

Permalink
add meta for RateLimitService.Get
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Oct 23, 2023
1 parent 0204952 commit 66a2035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func (r RateLimits) String() string {
}

// RateLimits returns the rate limits for the current client.
//
// GitHub API docs: https://docs.github.com/rest/rate-limit/rate-limit#get-rate-limit-status-for-the-authenticated-user
//
//meta:operation GET /rate_limit
func (s *RateLimitService) Get(ctx context.Context) (*RateLimits, *Response, error) {
req, err := s.client.NewRequest("GET", "rate_limit", nil)
if err != nil {
Expand Down

0 comments on commit 66a2035

Please sign in to comment.