UNPKG

danger

Version:
24 lines (23 loc) 737 B
import { Env, CISource } from "../ci_source"; /** * * ### CI Setup * * You need to add `DANGER_GITHUB_API_TOKEN` to the ENV for the build or machine manually. * Then you also need to figure out how to provide the URL for the pull request in `PULL_REQUEST_URL` ENV. * * TeamCity provides the `%teamcity.build.branch%` variable that contains something like `pull/123` that you can use: * ```sh * PULL_REQUEST_URL='https://github.com/dager/danger-js/%teamcity.build.branch%' * ``` * */ export declare class TeamCity implements CISource { private readonly env; constructor(env: Env); get name(): string; get isCI(): boolean; get isPR(): boolean; get pullRequestID(): string; get repoSlug(): string; }