Skip to content

Commit 0492fd1

Browse files
committed
chore(typos): fix typos in code and documentation
1 parent 400e248 commit 0492fd1

11 files changed

Lines changed: 12 additions & 12 deletions

File tree

acceptance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The organization in which the acceptance tests can manage resources in. Consider
2020

2121
#### `GH_ACCEPTANCE_TOKEN`
2222

23-
The token to use for authenticatin with the `GH_ACCEPTANCE_HOST`. This must already have the necessary scopes for each test, and must have permissions to act in the `GH_ACCEPTANCE_ORG`. See [Effective Test Authoring](#effective-test-authoring) for how tests must handle tokens without sufficient scopes.
23+
The token to use for authenticating with the `GH_ACCEPTANCE_HOST`. This must already have the necessary scopes for each test, and must have permissions to act in the `GH_ACCEPTANCE_ORG`. See [Effective Test Authoring](#effective-test-authoring) for how tests must handle tokens without sufficient scopes.
2424

2525
It's recommended to create and use a Legacy PAT for this; Fine-Grained PATs do not offer all the necessary privileges required. You can use an OAuth token provided via `gh auth login --web` and can provide it to the acceptance tests via `GH_ACCEPTANCE_TOKEN=$(gh auth token --hostname <host>)` but this can be a bit confusing and annoying if you `gh auth login` again without `-s` and lose the required scopes.
2626

acceptance/testdata/label/label.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exec gh repo create ${ORG}/${REPO} --private
77
# Defer repo cleanup
88
defer gh repo delete --yes ${ORG}/${REPO}
99

10-
# Set the GH_REPO env var to reduce redunant flags
10+
# Set the GH_REPO env var to reduce redundant flags
1111
env GH_REPO=${ORG}/${REPO}
1212

1313
# Create a custom label

internal/codespaces/rpc/invoker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func connect(ctx context.Context, fwd portforwarder.PortForwarder) (Invoker, err
141141
// Send initial connection heartbeat (no need to throw if we fail to get a response from the server)
142142
_ = invoker.notifyCodespaceOfClientActivity(ctx, connectedEventName)
143143

144-
// Start the activity heatbeats
144+
// Start the activity heartbeats
145145
go invoker.heartbeat(pfctx, 1*time.Minute)
146146

147147
return invoker, nil

pkg/cmd/agent-task/capi/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *CAPIClient) CreateJob(ctx context.Context, owner, repo, problemStatemen
108108
if res.StatusCode != http.StatusCreated && res.StatusCode != http.StatusOK { // accept 201 or 200
109109
statusText := fmt.Sprintf("%d %s", res.StatusCode, http.StatusText(res.StatusCode))
110110

111-
// If the response has error embeded, we can use that.
111+
// If the response has error embedded, we can use that.
112112
// TODO: Does this really ever happen?
113113
if j.ErrorInfo != nil {
114114
return nil, fmt.Errorf("failed to create job: %s: %s", statusText, j.ErrorInfo.Message)

pkg/cmd/issue/argparsetest/argparsetest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestArgParsing[T any](t *testing.T, fn newCmdFunc[T]) {
6060
},
6161
{
6262
name: "argument cannot be parsed to an issue",
63-
input: "unparseable",
63+
input: "unparsable",
6464
expectErr: true,
6565
},
6666
}

pkg/cmd/pr/diff/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func changedFilesNames(w io.Writer, r io.Reader) error {
310310
// 9114-triage
311311
// "hello-\360\237\230\200-world"
312312
//
313-
// Note that the b/ is removed but in the second case the preceeding quote remains.
313+
// Note that the b/ is removed but in the second case the preceding quote remains.
314314
// This is important for how git handles filenames that would be quoted with core.quotePath.
315315
// https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath
316316
//

pkg/cmd/pr/shared/find_refs_resolution.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
// <owner>:<branch>. The GitHub API is able to interpret this format in order
2222
// to discover the correct fork repository.
2323
//
24-
// In other parts of the code, you may see this refered to as a HeadLabel.
24+
// In other parts of the code, you may see this referred to as a HeadLabel.
2525
type QualifiedHeadRef struct {
2626
owner o.Option[string]
2727
branchName string
@@ -210,7 +210,7 @@ func TryDetermineDefaultPRHead(gitClient GitConfigClient, remoteToRepo remoteToR
210210
// remote represents the value of the remote key in a branch's git configuration.
211211
// This value may be a name or a URL, both of which are strings, but are unfortunately
212212
// parsed by ReadBranchConfig into separate fields, allowing for illegal states to be
213-
// created by accident. This is an attempt to indicate that they are mutally exclusive.
213+
// created by accident. This is an attempt to indicate that they are mutually exclusive.
214214
type remote interface{ sealedRemote() }
215215

216216
type remoteName struct{ name string }

pkg/cmd/skills/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ func checkUpstreamProvenance(opts *InstallOptions, client *api.Client, hostname
13181318

13191319
result, parseErr := frontmatter.Parse(content)
13201320
if parseErr != nil || result.Metadata.Meta == nil {
1321-
//nolint:nilerr // unparseable frontmatter means no upstream to detect
1321+
//nolint:nilerr // unparsable frontmatter means no upstream to detect
13221322
return nil, false, nil
13231323
}
13241324

pkg/cmd/skills/publish/publish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ func detectGitHubRemote(gitClient *git.Client, dir string) (*gitHubRemote, error
972972
func parseGitHubURL(rawURL string) (ghrepo.Interface, error) {
973973
u, err := git.ParseURL(rawURL)
974974
if err != nil {
975-
return nil, nil //nolint:nilerr // unparseable URL means it's not a GitHub remote
975+
return nil, nil //nolint:nilerr // unparsable URL means it's not a GitHub remote
976976
}
977977
r, err := ghrepo.FromURL(u)
978978
if err != nil {

pkg/iostreams/iostreams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (s *IOStreams) startTextualProgressIndicator(label string) {
346346
}
347347

348348
// StopProgressIndicator stops the progress indicator if it is running.
349-
// Note that a textual progess indicator does not create a progress indicator,
349+
// Note that a textual progress indicator does not create a progress indicator,
350350
// so this method is a no-op in that case.
351351
func (s *IOStreams) StopProgressIndicator() {
352352
s.progressIndicatorMu.Lock()

0 commit comments

Comments
 (0)