mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-06 14:27:28 +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 scmProvider == "bitbucket" {
|
||||||
if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" {
|
if os.Getenv("GHORG_BITBUCKET_OAUTH_TOKEN") == "" {
|
||||||
return ErrNoBitbucketUsername
|
|
||||||
}
|
|
||||||
|
|
||||||
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
|
if os.Getenv("GHORG_BITBUCKET_USERNAME") == "" {
|
||||||
return ErrNoBitbucketAppPassword
|
return ErrNoBitbucketUsername
|
||||||
|
}
|
||||||
|
|
||||||
|
if os.Getenv("GHORG_BITBUCKET_APP_PASSWORD") == "" {
|
||||||
|
return ErrNoBitbucketAppPassword
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user