Skip to content

Commit 3eb780e

Browse files
author
Scott Schulthess
committed
typo
1 parent 134c09b commit 3eb780e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewGitClient(source *Source, dir string, output io.Writer) (*GitClient, err
4040
PrivateKey: source.PrivateKey,
4141
UseGithubApp: source.UseGitHubApp,
4242
ApplicationID: source.ApplicationID,
43-
GithubOrganziation: source.GithubOrganziation,
43+
GithubOrganziation: source.GithubOrganization,
4444
Directory: dir,
4545
Output: output,
4646
}, nil

models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Source struct {
3030
TrustedTeams []string `json:"trusted_teams"`
3131
TrustedUsers []string `json:"trusted_users"`
3232
UseGitHubApp bool `json:"use_github_app"`
33-
GithubOrganziation string `json:"github_organization"`
33+
GithubOrganization string `json:"github_organization"`
3434
PrivateKey string `json:"private_key"`
3535
ApplicationID int64 `json:"application_id"`
3636
InstallationID int64 `json:"installation_id"`
@@ -48,7 +48,7 @@ func (s *Source) Validate() error {
4848
if s.ApplicationID == 0 || s.InstallationID == 0 {
4949
return errors.New("application_id and installation_id must be set if using GitHub App authentication")
5050
}
51-
if len(s.GithubOrganziation) == 0 {
51+
if len(s.GithubOrganization) == 0 {
5252
return errors.New("github_organization must be set if using GitHub App authentication")
5353
}
5454
if s.AccessToken != "" {

0 commit comments

Comments
 (0)