danger
Version:
Unit tests for Team Culture
33 lines (32 loc) • 705 B
TypeScript
import { Env, CISource } from "../ci_source";
/**
* ### CI Setup
*
* To make Danger run, add following lines to the `appcenter-pre-build.sh` file:
*
* ```
* - cd $APPCENTER_SOURCE_DIRECTORY
* - npm install -g danger
* - swift build
* - swift run danger-swift ci
* ```
*
*
*
* ### Token Setup
*
* Add the `DANGER_GITHUB_API_TOKEN` to your environment variables.
*
*/
export declare class AppCenter implements CISource {
private readonly env;
private default;
constructor(env: Env);
setup(): Promise<any>;
get name(): string;
get isCI(): boolean;
get isPR(): boolean;
get pullRequestID(): string;
get repoSlug(): string;
private get branchName();
}