github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/prow/cmd/deck/static/api/github.ts (about) 1 export type MergeableState = "MERGEABLE" | "CONFLICTING" | "UNKNOWN"; 2 export type StatusState = "EXPECTED" | "ERROR" | "FAILURE" | "PENDING" | "SUCCESS"; 3 4 export interface Ref { 5 Name: string; 6 Prefix: string; 7 } 8 9 export interface Author { 10 Login: string; 11 } 12 13 export interface Context { 14 Context: string; 15 Description: string; 16 State: StatusState; 17 } 18 19 20 export interface Commit { 21 Status: { 22 Contexts: Context[]; 23 } 24 OID: string; 25 } 26 27 export interface Repository { 28 Name: string; 29 NameWithOwner: string; 30 Owner: { 31 Login: string; 32 }; 33 } 34 35 export interface Milestone { 36 Title: string; 37 } 38 39 export interface PullRequest { 40 Number: number; 41 Author: Author; 42 BaseRef: Ref; 43 HeadRefOID: string; 44 Mergeable: MergeableState; 45 Repository: Repository; 46 }