Skip to content

Commit

Permalink
Merge pull request #1419 from timofurrer/feature/version-ctx
Browse files Browse the repository at this point in the history
Support request options for getting version
  • Loading branch information
svanharmelen authored Mar 19, 2022
2 parents 1e2db65 + adf868d commit 1a0a4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (s Version) String() string {
// authenticated users.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/version.md
func (s *VersionService) GetVersion() (*Version, *Response, error) {
req, err := s.client.NewRequest(http.MethodGet, "version", nil, nil)
func (s *VersionService) GetVersion(options ...RequestOptionFunc) (*Version, *Response, error) {
req, err := s.client.NewRequest(http.MethodGet, "version", nil, options)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 1a0a4f2

Please sign in to comment.