Skip to content

Commit

Permalink
fix: use DANGER_GITLAB_API_TOKEN to detect DSL type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Thompson committed May 29, 2019
1 parent 3a337fb commit 157383b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/runner/jsonToDSL.ts
Expand Up @@ -37,7 +37,7 @@ export const jsonToDSL = async (dsl: DangerDSLJSONType, source: CISource): Promi
git = await localPlatform.getPlatformGitRepresentation()
} else if (process.env["DANGER_BITBUCKETSERVER_HOST"]) {
git = bitBucketServerGitDSL(bitbucket_server!, dsl.git, api as BitBucketServerAPI)
} else if (process.env["DANGER_GITLAB_HOST"]) {
} else if (process.env["DANGER_GITLAB_API_TOKEN"]) {
git = gitLabGitDSL(gitlab!, dsl.git)
} else {
git = source && source.useEventDSL ? ({} as any) : githubJSONToGitDSL(github!, dsl.git)
Expand Down

0 comments on commit 157383b

Please sign in to comment.