1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Rename oauth variables (#5435)

Co-authored-by: Anton Bracke <anton.bracke@fastleansmart.com>
This commit is contained in:
Anbraten
2025-08-20 22:47:43 +02:00
committed by GitHub
parent 88b926c9dd
commit 24ebcb8cf8
17 changed files with 197 additions and 196 deletions

View File

@@ -47,13 +47,13 @@ const (
// Opts defines configuration options.
type Opts struct {
URL string // GitHub server url.
Client string // GitHub oauth client id.
Secret string // GitHub oauth client secret.
SkipVerify bool // Skip ssl verification.
MergeRef bool // Clone pull requests using the merge ref.
OnlyPublic bool // Only obtain OAuth tokens with access to public repos.
OAuthHost string // Public url for oauth if different from url.
URL string // GitHub server url.
OAuthClientID string // GitHub oauth client id.
OAuthClientSecret string // GitHub oauth client secret.
SkipVerify bool // Skip ssl verification.
MergeRef bool // Clone pull requests using the merge ref.
OnlyPublic bool // Only obtain OAuth tokens with access to public repos.
OAuthHost string // Public url for oauth if different from url.
}
// New returns a Forge implementation that integrates with a GitHub Cloud or
@@ -62,8 +62,8 @@ func New(opts Opts) (forge.Forge, error) {
r := &client{
API: defaultAPI,
url: defaultURL,
Client: opts.Client,
Secret: opts.Secret,
Client: opts.OAuthClientID,
Secret: opts.OAuthClientSecret,
oAuthHost: opts.OAuthHost,
SkipVerify: opts.SkipVerify,
MergeRef: opts.MergeRef,