Repository: google/go-github
Pull request #1892 (2021-06-13 17:22:30)

Typo fix: Runer -> Runner
Just a minor typo that slightly interfered with my `grep`s while working on https://github.com/integrations/terraform-provider-github/pull/821 :)

google-cla[bot]: 
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: **Please visit <https://cla.developers.google.com/> to sign.**

Once you've signed (or fixed any issues), please reply here with `@googlebot I signed it!` and we'll verify it.

----

#### What to do if you already signed the CLA

##### Individual signers

*   It's possible we don't have your GitHub username or you're using a different email address on your commit. Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).

##### Corporate signers

*   Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to [go/cla#troubleshoot](http://go/cla#troubleshoot) ([Public version](https://opensource.google/docs/cla/#troubleshoot)).
*   The email used to register you as an authorized contributor must be the email used for the Git commit. Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).
*   The email used to register you as an authorized contributor must also be [attached to your GitHub account](https://github.com/settings/emails).
		

ℹ️ **Googlers: [Go here](https://goto.google.com/prinfo/https%3A%2F%2Fgithub.com%2Fgoogle%2Fgo-github%2Fpull%2F1892) for more info**.

<!-- need_sender_cla -->
codecov[bot]: # [Codecov](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google) Report
> Merging [#1892](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google) (a926bb6) into [master](https://codecov.io/gh/google/go-github/commit/77dd0eb64ad232f78c67fd86fe4b84be887bab5b?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google) (77dd0eb) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/google/go-github/pull/1892/graphs/tree.svg?width=650&height=150&src=pr&token=EgYjGjZlI0&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google)](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google)

```diff
@@           Coverage Diff           @@
##           master    #1892   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files         105      105           
  Lines        6786     6786           
=======================================
  Hits         6627     6627           
  Misses         86       86           
  Partials       73       73           
```


| [Impacted Files](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google) | Coverage Δ | |
|---|---|---|
| [github/actions\_runner\_groups.go](https://codecov.io/gh/google/go-github/pull/1892/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google#diff-Z2l0aHViL2FjdGlvbnNfcnVubmVyX2dyb3Vwcy5nbw==) | `100.00% <ø> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google). Last update [77dd0eb...a926bb6](https://codecov.io/gh/google/go-github/pull/1892?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google).

gmlewis: Thank you, @willnorris !
Merging.

Patch:
diff --git a/github/actions_runner_groups.go b/github/actions_runner_groups.go
index 2c0459d5..5772daaa 100644
--- a/github/actions_runner_groups.go
+++ b/github/actions_runner_groups.go
@@ -217,10 +217,10 @@ func (s *ActionsService) RemoveRepositoryAccessRunnerGroup(ctx context.Context,
 	return s.client.Do(ctx, req, nil)
 }
 
-// ListRunerGroupRunners lists self-hosted runners that are in a specific organization group.
+// ListRunnerGroupRunners lists self-hosted runners that are in a specific organization group.
 //
 // GitHub API docs: https://docs.github.com/en/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization
-func (s *ActionsService) ListRunerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) {
+func (s *ActionsService) ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) {
 	u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners", org, groupID)
 	u, err := addOptions(u, opts)
 	if err != nil {
@@ -241,11 +241,11 @@ func (s *ActionsService) ListRunerGroupRunners(ctx context.Context, org string,
 	return runners, resp, nil
 }
 
-// SetRunerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group
+// SetRunnerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group
 // with a new list of runners.
 //
 // GitHub API docs: https://docs.github.com/en/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization
-func (s *ActionsService) SetRunerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) {
+func (s *ActionsService) SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) {
 	u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners", org, groupID)
 
 	req, err := s.client.NewRequest("PUT", u, ids)
@@ -256,10 +256,10 @@ func (s *ActionsService) SetRunerGroupRunners(ctx context.Context, org string, g
 	return s.client.Do(ctx, req, nil)
 }
 
-// AddRunerGroupRunners adds a self-hosted runner to a runner group configured in an organization.
+// AddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an organization.
 //
 // GitHub API docs: https://docs.github.com/en/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization
-func (s *ActionsService) AddRunerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
+func (s *ActionsService) AddRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
 	u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners/%v", org, groupID, runnerID)
 
 	req, err := s.client.NewRequest("PUT", u, nil)
@@ -270,11 +270,11 @@ func (s *ActionsService) AddRunerGroupRunners(ctx context.Context, org string, g
 	return s.client.Do(ctx, req, nil)
 }
 
-// RemoveRunerGroupRunners removes a self-hosted runner from a group configured in an organization.
+// RemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an organization.
 // The runner is then returned to the default group.
 //
 // GitHub API docs: https://docs.github.com/en/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization
-func (s *ActionsService) RemoveRunerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
+func (s *ActionsService) RemoveRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) {
 	u := fmt.Sprintf("orgs/%v/actions/runner-groups/%v/runners/%v", org, groupID, runnerID)
 
 	req, err := s.client.NewRequest("DELETE", u, nil)


Test patch:
diff --git a/github/actions_runner_groups_test.go b/github/actions_runner_groups_test.go
index b183274e..ca24ae93 100644
--- a/github/actions_runner_groups_test.go
+++ b/github/actions_runner_groups_test.go
@@ -348,7 +348,7 @@ func TestActionsService_RemoveRepositoryAccessRunnerGroup(t *testing.T) {
 	})
 }
 
-func TestActionsService_ListRunerGroupRunners(t *testing.T) {
+func TestActionsService_ListRunnerGroupRunners(t *testing.T) {
 	client, mux, _, teardown := setup()
 	defer teardown()
 
@@ -360,9 +360,9 @@ func TestActionsService_ListRunerGroupRunners(t *testing.T) {
 
 	opts := &ListOptions{Page: 2, PerPage: 2}
 	ctx := context.Background()
-	runners, _, err := client.Actions.ListRunerGroupRunners(ctx, "o", 2, opts)
+	runners, _, err := client.Actions.ListRunnerGroupRunners(ctx, "o", 2, opts)
 	if err != nil {
-		t.Errorf("Actions.ListRunerGroupRunners returned error: %v", err)
+		t.Errorf("Actions.ListRunnerGroupRunners returned error: %v", err)
 	}
 
 	want := &Runners{
@@ -373,17 +373,17 @@ func TestActionsService_ListRunerGroupRunners(t *testing.T) {
 		},
 	}
 	if !cmp.Equal(runners, want) {
-		t.Errorf("Actions.ListRunerGroupRunners returned %+v, want %+v", runners, want)
+		t.Errorf("Actions.ListRunnerGroupRunners returned %+v, want %+v", runners, want)
 	}
 
-	const methodName = "ListRunerGroupRunners"
+	const methodName = "ListRunnerGroupRunners"
 	testBadOptions(t, methodName, func() (err error) {
-		_, _, err = client.Actions.ListRunerGroupRunners(ctx, "\n", 2, opts)
+		_, _, err = client.Actions.ListRunnerGroupRunners(ctx, "\n", 2, opts)
 		return err
 	})
 
 	testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
-		got, resp, err := client.Actions.ListRunerGroupRunners(ctx, "o", 2, opts)
+		got, resp, err := client.Actions.ListRunnerGroupRunners(ctx, "o", 2, opts)
 		if got != nil {
 			t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
 		}
@@ -391,7 +391,7 @@ func TestActionsService_ListRunerGroupRunners(t *testing.T) {
 	})
 }
 
-func TestActionsService_SetRunerGroupRunners(t *testing.T) {
+func TestActionsService_SetRunnerGroupRunners(t *testing.T) {
 	client, mux, _, teardown := setup()
 	defer teardown()
 
@@ -407,23 +407,23 @@ func TestActionsService_SetRunerGroupRunners(t *testing.T) {
 	}
 
 	ctx := context.Background()
-	_, err := client.Actions.SetRunerGroupRunners(ctx, "o", 2, req)
+	_, err := client.Actions.SetRunnerGroupRunners(ctx, "o", 2, req)
 	if err != nil {
-		t.Errorf("Actions.SetRunerGroupRunners returned error: %v", err)
+		t.Errorf("Actions.SetRunnerGroupRunners returned error: %v", err)
 	}
 
-	const methodName = "SetRunerGroupRunners"
+	const methodName = "SetRunnerGroupRunners"
 	testBadOptions(t, methodName, func() (err error) {
-		_, err = client.Actions.SetRunerGroupRunners(ctx, "\n", 2, req)
+		_, err = client.Actions.SetRunnerGroupRunners(ctx, "\n", 2, req)
 		return err
 	})
 
 	testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
-		return client.Actions.SetRunerGroupRunners(ctx, "o", 2, req)
+		return client.Actions.SetRunnerGroupRunners(ctx, "o", 2, req)
 	})
 }
 
-func TestActionsService_AddRunerGroupRunners(t *testing.T) {
+func TestActionsService_AddRunnerGroupRunners(t *testing.T) {
 	client, mux, _, teardown := setup()
 	defer teardown()
 
@@ -432,23 +432,23 @@ func TestActionsService_AddRunerGroupRunners(t *testing.T) {
 	})
 
 	ctx := context.Background()
-	_, err := client.Actions.AddRunerGroupRunners(ctx, "o", 2, 42)
+	_, err := client.Actions.AddRunnerGroupRunners(ctx, "o", 2, 42)
 	if err != nil {
-		t.Errorf("Actions.AddRunerGroupRunners returned error: %v", err)
+		t.Errorf("Actions.AddRunnerGroupRunners returned error: %v", err)
 	}
 
-	const methodName = "AddRunerGroupRunners"
+	const methodName = "AddRunnerGroupRunners"
 	testBadOptions(t, methodName, func() (err error) {
-		_, err = client.Actions.AddRunerGroupRunners(ctx, "\n", 2, 42)
+		_, err = client.Actions.AddRunnerGroupRunners(ctx, "\n", 2, 42)
 		return err
 	})
 
 	testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
-		return client.Actions.AddRunerGroupRunners(ctx, "o", 2, 42)
+		return client.Actions.AddRunnerGroupRunners(ctx, "o", 2, 42)
 	})
 }
 
-func TestActionsService_RemoveRunerGroupRunners(t *testing.T) {
+func TestActionsService_RemoveRunnerGroupRunners(t *testing.T) {
 	client, mux, _, teardown := setup()
 	defer teardown()
 
@@ -457,18 +457,18 @@ func TestActionsService_RemoveRunerGroupRunners(t *testing.T) {
 	})
 
 	ctx := context.Background()
-	_, err := client.Actions.RemoveRunerGroupRunners(ctx, "o", 2, 42)
+	_, err := client.Actions.RemoveRunnerGroupRunners(ctx, "o", 2, 42)
 	if err != nil {
-		t.Errorf("Actions.RemoveRunerGroupRunners returned error: %v", err)
+		t.Errorf("Actions.RemoveRunnerGroupRunners returned error: %v", err)
 	}
 
-	const methodName = "RemoveRunerGroupRunners"
+	const methodName = "RemoveRunnerGroupRunners"
 	testBadOptions(t, methodName, func() (err error) {
-		_, err = client.Actions.RemoveRunerGroupRunners(ctx, "\n", 2, 42)
+		_, err = client.Actions.RemoveRunnerGroupRunners(ctx, "\n", 2, 42)
 		return err
 	})
 
 	testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
-		return client.Actions.RemoveRunerGroupRunners(ctx, "o", 2, 42)
+		return client.Actions.RemoveRunnerGroupRunners(ctx, "o", 2, 42)
 	})
 }