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

     1  import {Context, PullRequest as BasePullRequest} from './github';
     2  
     3  export interface Label {
     4    ID: object;
     5    Name: string;
     6  }
     7  
     8  export interface Ref {
     9    Name: string;
    10    Prefix: string;
    11  }
    12  
    13  export interface Author {
    14    Login: string;
    15  }
    16  
    17  export interface Repository {
    18    Name: string;
    19    NameWithOwner: string;
    20    Owner: {
    21      Login: string;
    22    };
    23  }
    24  
    25  export interface PullRequest extends BasePullRequest {
    26    Merged: boolean;
    27    Title: string;
    28    Author: Author;
    29    BaseRef: Ref;
    30    Repository: Repository;
    31    Labels: {
    32      Nodes: {
    33        Label: Label;
    34      }[];
    35    };
    36    Milestone: {
    37      Title: string;
    38    };
    39  }
    40  
    41  export interface PullRequestWithContext {
    42    Contexts: Context[];
    43    PullRequest: PullRequest;
    44  }
    45  
    46  export interface UserData {
    47    Login: boolean;
    48    PullRequestsWithContexts: PullRequestWithContext[];
    49  }