forked from tinybeachthor/gitbot-format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
68 lines (58 loc) · 1.2 KB
/
Copy pathtypes.d.ts
File metadata and controls
68 lines (58 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
declare module types {
interface PatchRange {
oldStart: number
oldLines: number
newStart: number
newLines: number
}
interface Annotation {
path: string
start_line: number
end_line: number
annotation_level: string
message: string
}
interface Annotations {
annotations: Annotation[]
lines: number
}
interface PullRequestInfo {
owner: string
repo: string
ref: string
pull_number?: number
sha?: string
}
interface PullRequestInfoFull {
owner: string
repo: string
ref: string
pull_number: number
sha: string
}
interface File {
filename: string
content: string
}
interface GitFile {
owner?: string
repo?: string
filename: string
sha: string
}
interface CheckrunInfo {
owner: string
repo: string
head_sha: string
name: string
}
interface Checkrun {
error: (error: string) => Promise<void>
queued: () => Promise<void>
progress: (time: Date) => Promise<void>
failure: (annotations: Annotation[], lines: number, skipped: string[])
=> Promise<void>
warningSkipped: (skipped: string[]) => Promise<void>
success: () => Promise<void>
}
}