Merge pull request #9068 from szepeviktor/typos

Fix typos
This commit is contained in:
William Martin 2024-05-10 07:37:34 +02:00 committed by GitHub
commit 2543c22463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View file

@ -25,7 +25,7 @@ var allIssueFeatures = IssueFeatures{
type PullRequestFeatures struct {
MergeQueue bool
// CheckRunAndStatusContextCounts indicates whether the API supports
// the checkRunCount, checkRunCountsByState, statusContextCount and stausContextCountsByState
// the checkRunCount, checkRunCountsByState, statusContextCount and statusContextCountsByState
// fields on the StatusCheckRollupContextConnection
CheckRunAndStatusContextCounts bool
CheckRunEvent bool

View file

@ -97,6 +97,6 @@ func TestFilterAttestations(t *testing.T) {
require.Len(t, filtered, 1)
filtered = FilterAttestations("NonExistantPredicate", attestations)
filtered = FilterAttestations("NonExistentPredicate", attestations)
require.Len(t, filtered, 0)
}

View file

@ -11,8 +11,8 @@ import (
func NewCmdCache(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "cache <command>",
Short: "Manage Github Actions caches",
Long: "Work with Github Actions caches.",
Short: "Manage GitHub Actions caches",
Long: "Work with GitHub Actions caches.",
Example: heredoc.Doc(`
$ gh cache list
$ gh cache delete --all

View file

@ -34,9 +34,9 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
cmd := &cobra.Command{
Use: "delete [<cache-id>| <cache-key> | --all]",
Short: "Delete Github Actions caches",
Short: "Delete GitHub Actions caches",
Long: `
Delete Github Actions caches.
Delete GitHub Actions caches.
Deletion requires authorization with the "repo" scope.
`,

View file

@ -39,7 +39,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
cmd := &cobra.Command{
Use: "list",
Short: "List Github Actions caches",
Short: "List GitHub Actions caches",
Example: heredoc.Doc(`
# List caches for current repository
$ gh cache list

View file

@ -11,7 +11,7 @@ func NewCmdOrg(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "org <command>",
Short: "Manage organizations",
Long: "Work with Github organizations.",
Long: "Work with GitHub organizations.",
Example: heredoc.Doc(`
$ gh org list
`),

View file

@ -158,7 +158,7 @@ func NewCmdSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command
cmdutil.StringEnumFlag(cmd, &opts.Visibility, "visibility", "v", shared.Private, []string{shared.All, shared.Private, shared.Selected}, "Set visibility for an organization secret")
cmd.Flags().StringSliceVarP(&opts.RepositoryNames, "repos", "r", []string{}, "List of `repositories` that can access an organization or user secret")
cmd.Flags().StringVarP(&opts.Body, "body", "b", "", "The value for the secret (reads from standard input if not specified)")
cmd.Flags().BoolVar(&opts.DoNotStore, "no-store", false, "Print the encrypted, base64-encoded value instead of storing it on Github")
cmd.Flags().BoolVar(&opts.DoNotStore, "no-store", false, "Print the encrypted, base64-encoded value instead of storing it on GitHub")
cmd.Flags().StringVarP(&opts.EnvFile, "env-file", "f", "", "Load secret names and values from a dotenv-formatted `file`")
cmdutil.StringEnumFlag(cmd, &opts.Application, "app", "a", "", []string{shared.Actions, shared.Codespaces, shared.Dependabot}, "Set the application for a secret")