github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/deck/static/api/tide.ts (about)

     1  import {PullRequest as BasePullRequest} from "./github";
     2  
     3  export interface TideQuery {
     4    orgs?: string[];
     5    repos?: string[];
     6    excludedRepos?: string[];
     7    excludedBranches?: string[];
     8    includedBranches?: string[];
     9    labels?: string[];
    10    missingLabels?: string[];
    11    author?: string;
    12    milestone?: string;
    13    reviewApprovedRequired?: boolean;
    14  }
    15  
    16  export interface PullRequest extends BasePullRequest {
    17    Title: string;
    18  }
    19  
    20  export type Action = "WAIT" | "TRIGGER" | "TRIGGER_BATCH" | "MERGE" | "MERGE_BATCH" | "BLOCKED";
    21  
    22  export interface Blocker {
    23    Number: number;
    24    Title: string;
    25    URL: string;
    26  }
    27  
    28  export interface TidePool {
    29    Org: string;
    30    Repo: string;
    31    Branch: string;
    32  
    33    SuccessPRs: PullRequest[];
    34    PendingPRs: PullRequest[];
    35    MissingPRs: PullRequest[];
    36  
    37    BatchPending: PullRequest[];
    38  
    39    Action: Action;
    40    Target: PullRequest[];
    41    Blockers: Blocker[];
    42  }
    43  
    44  export interface TideData {
    45    Queries: string[];
    46    TideQueries: TideQuery[];
    47    Pools: TidePool[];
    48  }