Skip to content

Commit

Permalink
add github app support
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jul 26, 2024
1 parent 53ae96c commit 4cd6280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vcs/github_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func CreateGithubClient(cfg config.ServerConfig) (*Client, error) {
)

if (cfg.GithubAppID == 0 || cfg.GithubInstallationID == 0 || cfg.GithubPrivateKey == "") && cfg.VcsToken == "" {
log.Fatal().Msg("github token or app credentials need to be set")
log.Fatal().Msg("Either GitHub token or GitHub App credentials (App ID, Installation ID, Private Key) must be set")
}

// Initialize the GitHub client with app key if provided
Expand Down

0 comments on commit 4cd6280

Please sign in to comment.