UNPKG

coveralls-api

Version:
60 lines (59 loc) 1.82 kB
import { Service } from "./"; declare type RepoIdentifiers = { /** * Git provider. Options include: github, bitbucket, gitlab, stash, manual */ service: Service; /** * Name of the repo. E.g. with Github, this is username/reponame. */ name: string; }; declare type RepoProperties = { /** * Whether comments should be posted on pull requests (defaults to true) */ comment_on_pull_requests: boolean; /** * Whether build status should be sent to the git provider (defaults to true) */ send_build_status: boolean; /** * Minimum coverage that must be present on a build for the build to pass (default is null, meaning any decrease is a failure) */ commit_status_fail_threshold: number | null; /** * If coverage decreases, the maximum allowed amount of decrease that will be allowed for the build to pass (default is null, meaning that any decrease is a failure) */ commit_status_fail_change_threshold: number | null; }; declare type RepoResponseFields = { /** * Timestamp of the creation of this Repo */ created_at: string; /** * Timestamp of the last modification to this Repo */ updated_at: string; }; declare type RepoResponse = RepoIdentifiers & RepoProperties & RepoResponseFields; export declare type CreateRepoArgs = RepoIdentifiers & Partial<RepoProperties>; export declare type CreateRepoResponse = { repo: RepoResponse; }; export declare type UpdateRepoArgs = { repo: Partial<RepoProperties>; }; export declare type UpdateRepoReponse = { repo: RepoResponse; }; export declare type GetRepoResponse = RepoResponse & { id: number; has_badge: boolean; /** * Repo Token (only available if you have access) */ token?: string; }; export {};