From 12956b56e2ecaee4ba80e1163af0f826b6a5836c Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Thu, 28 Jul 2022 00:10:16 +0800 Subject: [PATCH] Fix another GPG API --- users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.go b/users.go index e4be66d9c..b170e280c 100644 --- a/users.go +++ b/users.go @@ -606,7 +606,7 @@ func (s *UsersService) ListGPGKeys(options ...RequestOptionFunc) ([]*GPGKey, *Re // // GitLab API docs: https://docs.gitlab.com/ce/api/users.html#get-a-specific-gpg-key func (s *UsersService) GetGPGKey(key int, options ...RequestOptionFunc) (*GPGKey, *Response, error) { - u := fmt.Sprintf("users/gpg_keys/%d", key) + u := fmt.Sprintf("user/gpg_keys/%d", key) req, err := s.client.NewRequest(http.MethodGet, u, nil, options) if err != nil {