From b5d9b2ed31e25eec0903aa6f6d53c70d9017aa05 Mon Sep 17 00:00:00 2001 From: Patrick Rice Date: Fri, 4 Aug 2023 02:08:40 +0000 Subject: [PATCH] Fix comments --- users.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/users.go b/users.go index 15fa28cf7..249d2ca93 100644 --- a/users.go +++ b/users.go @@ -1447,10 +1447,11 @@ type UserRunner struct { MaximumTimeout int `json:"maximum_timeout"` } -// GetUserMemberships retrieves a list of the user's memberships. +// CreateUserRunner creates a new runner using the user-based flow and returns the authentication +// token. // // GitLab API docs: -// https://docs.gitlab.com/ee/api/users.html#user-memberships +// https://docs.gitlab.com/ee/api/users.html#create-a-runner func (s *UsersService) CreateUserRunner(runnerOpts *CreateUserRunnerOptions, options ...RequestOptionFunc) (*UserRunner, *Response, error) { // The user who owns the runner comes from the access token used to authorize the request. u := "user/runners"