This repository was archived by the owner on Feb 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.ts
More file actions
74 lines (70 loc) · 1.34 KB
/
types.ts
File metadata and controls
74 lines (70 loc) · 1.34 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
69
70
71
72
73
74
export interface PRDetails {
pr_number: number;
repository_id: number;
commit_sha: string;
pr_url: string;
}
export interface PRContext {
owner: string;
repo: string;
pr_number: number;
repository_id: number;
commit_sha: string;
pr_url: string;
repository_full_name: string;
}
export interface GitHubPullRequestEvent {
action: string;
number: number;
pull_request: {
id: number;
number: number;
state: string;
title: string;
body: string;
user: {
id: number;
login: string;
avatar_url: string;
};
head: {
sha: string;
ref: string;
};
base: {
sha: string;
ref: string;
};
html_url: string;
mergeable: boolean | null;
merged: boolean;
draft: boolean;
};
repository: {
id: number;
name: string;
full_name: string;
html_url: string;
owner: {
id: number;
login: string;
};
};
sender: {
id: number;
login: string;
};
}
export const CHECK_STATUS = {
QUEUED: 'queued' as const,
IN_PROGRESS: 'in_progress' as const,
COMPLETED: 'completed' as const,
};
export const CHECK_CONCLUSION = {
SUCCESS: 'success' as const,
FAILURE: 'failure' as const,
NEUTRAL: 'neutral' as const,
CANCELLED: 'cancelled' as const,
SKIPPED: 'skipped' as const,
TIMED_OUT: 'timed_out' as const,
};