mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-05 22:07:12 +02:00
Update configs.go (#465)
This commit is contained in:
parent
bbc428735f
commit
d5c8781768
@ -300,12 +300,15 @@ func VerifyTokenSet() error {
|
||||
}
|
||||
|
||||
if scmProvider == "bitbucket" {
|
||||
if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" {
|
||||
return ErrNoBitbucketUsername
|
||||
}
|
||||
if os.Getenv("GHORG_BITBUCKET_OAUTH_TOKEN") == "" {
|
||||
|
||||
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
|
||||
return ErrNoBitbucketAppPassword
|
||||
if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" {
|
||||
return ErrNoBitbucketUsername
|
||||
}
|
||||
|
||||
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
|
||||
return ErrNoBitbucketAppPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user