Skip to content

Commit 75644ea

Browse files
authored
Typo fix: Runer -> Runner (#1892)
1 parent 77dd0eb commit 75644ea

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

github/actions_runner_groups.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ func (s *ActionsService) RemoveRepositoryAccessRunnerGroup(ctx context.Context,
217217
return s.client.Do(ctx, req, nil)
218218
}
219219

220-
// ListRunerGroupRunners lists self-hosted runners that are in a specific organization group.
220+
// ListRunnerGroupRunners lists self-hosted runners that are in a specific organization group.
221221
//
222222
// GitHub API docs: https://docs.github.com/en/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization
223-
func (s *ActionsService) ListRunerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) {
223+
func (s *ActionsService) ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) {
224224
u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners", org, groupID)
225225
u, err := addOptions(u, opts)
226226
if err != nil {
@@ -241,11 +241,11 @@ func (s *ActionsService) ListRunerGroupRunners(ctx context.Context, org string,
241241
return runners, resp, nil
242242
}
243243

244-
// SetRunerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group
244+
// SetRunnerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group
245245
// with a new list of runners.
246246
//
247247
// GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization
248-
func (s *ActionsService) SetRunerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) {
248+
func (s *ActionsService) SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) {
249249
u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners", org, groupID)
250250

251251
req, err := s.client.NewRequest("PUT", u, ids)
@@ -256,10 +256,10 @@ func (s *ActionsService) SetRunerGroupRunners(ctx context.Context, org string, g
256256
return s.client.Do(ctx, req, nil)
257257
}
258258

259-
// AddRunerGroupRunners adds a self-hosted runner to a runner group configured in an organization.
259+
// AddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an organization.
260260
//
261261
// GitHub API docs: https://docs.github.com/en/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization
262-
func (s *ActionsService) AddRunerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
262+
func (s *ActionsService) AddRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
263263
u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners/%v", org, groupID, runnerID)
264264

265265
req, err := s.client.NewRequest("PUT", u, nil)
@@ -270,11 +270,11 @@ func (s *ActionsService) AddRunerGroupRunners(ctx context.Context, org string, g
270270
return s.client.Do(ctx, req, nil)
271271
}
272272

273-
// RemoveRunerGroupRunners removes a self-hosted runner from a group configured in an organization.
273+
// RemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an organization.
274274
// The runner is then returned to the default group.
275275
//
276276
// GitHub API docs: https://docs.github.com/en/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization
277-
func (s *ActionsService) RemoveRunerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
277+
func (s *ActionsService) RemoveRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
278278
u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners/%v", org, groupID, runnerID)
279279

280280
req, err := s.client.NewRequest("DELETE", u, nil)

github/actions_runner_groups_test.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func TestActionsService_RemoveRepositoryAccessRunnerGroup(t *testing.T) {
348348
})
349349
}
350350

351-
func TestActionsService_ListRunerGroupRunners(t *testing.T) {
351+
func TestActionsService_ListRunnerGroupRunners(t *testing.T) {
352352
client, mux, _, teardown := setup()
353353
defer teardown()
354354

@@ -360,9 +360,9 @@ func TestActionsService_ListRunerGroupRunners(t *testing.T) {
360360

361361
opts := &ListOptions{Page: 2, PerPage: 2}
362362
ctx := context.Background()
363-
runners, _, err := client.Actions.ListRunerGroupRunners(ctx, "o", 2, opts)
363+
runners, _, err := client.Actions.ListRunnerGroupRunners(ctx, "o", 2, opts)
364364
if err != nil {
365-
t.Errorf("Actions.ListRunerGroupRunners returned error: %v", err)
365+
t.Errorf("Actions.ListRunnerGroupRunners returned error: %v", err)
366366
}
367367

368368
want := &Runners{
@@ -373,25 +373,25 @@ func TestActionsService_ListRunerGroupRunners(t *testing.T) {
373373
},
374374
}
375375
if !cmp.Equal(runners, want) {
376-
t.Errorf("Actions.ListRunerGroupRunners returned %+v, want %+v", runners, want)
376+
t.Errorf("Actions.ListRunnerGroupRunners returned %+v, want %+v", runners, want)
377377
}
378378

379-
const methodName = "ListRunerGroupRunners"
379+
const methodName = "ListRunnerGroupRunners"
380380
testBadOptions(t, methodName, func() (err error) {
381-
_, _, err = client.Actions.ListRunerGroupRunners(ctx, "\n", 2, opts)
381+
_, _, err = client.Actions.ListRunnerGroupRunners(ctx, "\n", 2, opts)
382382
return err
383383
})
384384

385385
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
386-
got, resp, err := client.Actions.ListRunerGroupRunners(ctx, "o", 2, opts)
386+
got, resp, err := client.Actions.ListRunnerGroupRunners(ctx, "o", 2, opts)
387387
if got != nil {
388388
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
389389
}
390390
return resp, err
391391
})
392392
}
393393

394-
func TestActionsService_SetRunerGroupRunners(t *testing.T) {
394+
func TestActionsService_SetRunnerGroupRunners(t *testing.T) {
395395
client, mux, _, teardown := setup()
396396
defer teardown()
397397

@@ -407,23 +407,23 @@ func TestActionsService_SetRunerGroupRunners(t *testing.T) {
407407
}
408408

409409
ctx := context.Background()
410-
_, err := client.Actions.SetRunerGroupRunners(ctx, "o", 2, req)
410+
_, err := client.Actions.SetRunnerGroupRunners(ctx, "o", 2, req)
411411
if err != nil {
412-
t.Errorf("Actions.SetRunerGroupRunners returned error: %v", err)
412+
t.Errorf("Actions.SetRunnerGroupRunners returned error: %v", err)
413413
}
414414

415-
const methodName = "SetRunerGroupRunners"
415+
const methodName = "SetRunnerGroupRunners"
416416
testBadOptions(t, methodName, func() (err error) {
417-
_, err = client.Actions.SetRunerGroupRunners(ctx, "\n", 2, req)
417+
_, err = client.Actions.SetRunnerGroupRunners(ctx, "\n", 2, req)
418418
return err
419419
})
420420

421421
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
422-
return client.Actions.SetRunerGroupRunners(ctx, "o", 2, req)
422+
return client.Actions.SetRunnerGroupRunners(ctx, "o", 2, req)
423423
})
424424
}
425425

426-
func TestActionsService_AddRunerGroupRunners(t *testing.T) {
426+
func TestActionsService_AddRunnerGroupRunners(t *testing.T) {
427427
client, mux, _, teardown := setup()
428428
defer teardown()
429429

@@ -432,23 +432,23 @@ func TestActionsService_AddRunerGroupRunners(t *testing.T) {
432432
})
433433

434434
ctx := context.Background()
435-
_, err := client.Actions.AddRunerGroupRunners(ctx, "o", 2, 42)
435+
_, err := client.Actions.AddRunnerGroupRunners(ctx, "o", 2, 42)
436436
if err != nil {
437-
t.Errorf("Actions.AddRunerGroupRunners returned error: %v", err)
437+
t.Errorf("Actions.AddRunnerGroupRunners returned error: %v", err)
438438
}
439439

440-
const methodName = "AddRunerGroupRunners"
440+
const methodName = "AddRunnerGroupRunners"
441441
testBadOptions(t, methodName, func() (err error) {
442-
_, err = client.Actions.AddRunerGroupRunners(ctx, "\n", 2, 42)
442+
_, err = client.Actions.AddRunnerGroupRunners(ctx, "\n", 2, 42)
443443
return err
444444
})
445445

446446
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
447-
return client.Actions.AddRunerGroupRunners(ctx, "o", 2, 42)
447+
return client.Actions.AddRunnerGroupRunners(ctx, "o", 2, 42)
448448
})
449449
}
450450

451-
func TestActionsService_RemoveRunerGroupRunners(t *testing.T) {
451+
func TestActionsService_RemoveRunnerGroupRunners(t *testing.T) {
452452
client, mux, _, teardown := setup()
453453
defer teardown()
454454

@@ -457,18 +457,18 @@ func TestActionsService_RemoveRunerGroupRunners(t *testing.T) {
457457
})
458458

459459
ctx := context.Background()
460-
_, err := client.Actions.RemoveRunerGroupRunners(ctx, "o", 2, 42)
460+
_, err := client.Actions.RemoveRunnerGroupRunners(ctx, "o", 2, 42)
461461
if err != nil {
462-
t.Errorf("Actions.RemoveRunerGroupRunners returned error: %v", err)
462+
t.Errorf("Actions.RemoveRunnerGroupRunners returned error: %v", err)
463463
}
464464

465-
const methodName = "RemoveRunerGroupRunners"
465+
const methodName = "RemoveRunnerGroupRunners"
466466
testBadOptions(t, methodName, func() (err error) {
467-
_, err = client.Actions.RemoveRunerGroupRunners(ctx, "\n", 2, 42)
467+
_, err = client.Actions.RemoveRunnerGroupRunners(ctx, "\n", 2, 42)
468468
return err
469469
})
470470

471471
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
472-
return client.Actions.RemoveRunerGroupRunners(ctx, "o", 2, 42)
472+
return client.Actions.RemoveRunnerGroupRunners(ctx, "o", 2, 42)
473473
})
474474
}

0 commit comments

Comments
 (0)