Skip to content

Commit 3c162a7

Browse files
Merge pull request cli#13326 from scop/style/grammar
Grammar fixes
2 parents 7c43919 + d8b8655 commit 3c162a7

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

api/http_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func NewCachedHTTPClient(httpClient *http.Client, ttl time.Duration) *http.Clien
9292
return &newClient
9393
}
9494

95-
// AddCacheTTLHeader adds an header to the request telling the cache that the request
95+
// AddCacheTTLHeader adds a header to the request telling the cache that the request
9696
// should be cached for a specified amount of time.
9797
func AddCacheTTLHeader(rt http.RoundTripper, ttl time.Duration) http.RoundTripper {
9898
return &funcTripper{roundTrip: func(req *http.Request) (*http.Response, error) {

git/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (c *Client) Command(ctx context.Context, args ...string) (*Command, error)
106106
// It is only usable when constructed by another function in the package because the empty pattern,
107107
// without allMatching set to true, will result in an error in AuthenticatedCommand.
108108
//
109-
// Callers can currently opt-in to an slightly less secure mode for backwards compatibility by using
109+
// Callers can currently opt-in to a slightly less secure mode for backwards compatibility by using
110110
// AllMatchingCredentialsPattern.
111111
type CredentialPattern struct {
112112
allMatching bool // should only be constructable via AllMatchingCredentialsPattern

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ color_labels: disabled
580580
accessible_colors: disabled
581581
# Whether an accessible prompter should be used. Supported values: enabled, disabled
582582
accessible_prompter: disabled
583-
# Whether to use a animated spinner as a progress indicator. If disabled, a textual progress indicator is used instead. Supported values: enabled, disabled
583+
# Whether to use an animated spinner as a progress indicator. If disabled, a textual progress indicator is used instead. Supported values: enabled, disabled
584584
spinner: enabled
585585
`
586586

@@ -681,7 +681,7 @@ var Options = []ConfigOption{
681681
},
682682
{
683683
Key: spinnerKey,
684-
Description: "whether to use a animated spinner as a progress indicator",
684+
Description: "whether to use an animated spinner as a progress indicator",
685685
DefaultValue: "enabled",
686686
AllowedValues: []string{"enabled", "disabled"},
687687
CurrentValue: func(c gh.Config, hostname string) string {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (c *CAPIClient) CreateJob(ctx context.Context, owner, repo, problemStatemen
127127
return &j, nil
128128
}
129129

130-
// GetJob retrieves a agent job
130+
// GetJob retrieves an agent job
131131
func (c *CAPIClient) GetJob(ctx context.Context, owner, repo, jobID string) (*Job, error) {
132132
if owner == "" || repo == "" || jobID == "" {
133133
return nil, errors.New("owner, repo, and jobID are required")

pkg/cmd/issue/pin/pin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewCmdPin(f *cmdutil.Factory, runF func(*PinOptions) error) *cobra.Command
3333

3434
cmd := &cobra.Command{
3535
Use: "pin {<number> | <url>}",
36-
Short: "Pin a issue",
36+
Short: "Pin an issue",
3737
Long: heredoc.Doc(`
3838
Pin an issue to a repository.
3939

pkg/cmd/issue/unpin/unpin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewCmdUnpin(f *cmdutil.Factory, runF func(*UnpinOptions) error) *cobra.Comm
3434

3535
cmd := &cobra.Command{
3636
Use: "unpin {<number> | <url>}",
37-
Short: "Unpin a issue",
37+
Short: "Unpin an issue",
3838
Long: heredoc.Doc(`
3939
Unpin an issue from a repository.
4040

pkg/cmd/label/clone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func newCmdClone(f *cmdutil.Factory, runF func(*cloneOptions) error) *cobra.Comm
5050
# Clone and overwrite labels from cli/cli repository into the current repository
5151
$ gh label clone cli/cli --force
5252
53-
# Clone labels from cli/cli repository into a octocat/cli repository
53+
# Clone labels from cli/cli repository into octocat/cli repository
5454
$ gh label clone cli/cli --repo octocat/cli
5555
`),
5656
Args: cmdutil.ExactArgs(1, "cannot clone labels: source-repository argument required"),

pkg/cmd/pr/create/create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ func Test_createRun(t *testing.T) {
861861
{ "filename": "template1",
862862
"body": "this is a bug" },
863863
{ "filename": "template2",
864-
"body": "this is a enhancement" }
864+
"body": "this is an enhancement" }
865865
] } } }`))
866866
reg.Register(
867867
httpmock.GraphQL(`mutation PullRequestCreate\b`),
@@ -1092,7 +1092,7 @@ func Test_createRun(t *testing.T) {
10921092
{ "filename": "template1",
10931093
"body": "this is a bug" },
10941094
{ "filename": "template2",
1095-
"body": "this is a enhancement" }
1095+
"body": "this is an enhancement" }
10961096
] } } }`),
10971097
)
10981098
reg.Register(

pkg/cmd/workflow/shared/shared_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func TestGetWorkflows(t *testing.T) {
406406
}
407407
}
408408

409-
// generateWorkflows returns an slice of workflows with the given count, labeled
409+
// generateWorkflows returns a slice of workflows with the given count, labeled
410410
// with the page number of testing pagination.
411411
// The page number is used to generate unique Names and IDs for each workflow.
412412
func generateWorkflows(t *testing.T, workflowCount int, pageNum int) []Workflow {

pkg/iostreams/iostreams_progress_indicator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestStartProgressIndicatorWithLabel(t *testing.T) {
2727
// waiting for input because the console is not ready to be read.
2828
// But in this case, we are not blocking waiting for input and stdout
2929
// can be constantly read. This means the timeout will never be reached
30-
// in the event of a expectation failure.
30+
// in the event of an expectation failure.
3131
// To fix this, we need to implement our own timeout that is based
3232
// specifically on the total time spent reading the console and waiting
3333
// for the target string instead of the max time for a single read

0 commit comments

Comments
 (0)