generated from chrisgrieser/alfred-workflow-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgithub-api.d.ts
76 lines (71 loc) · 2.21 KB
/
github-api.d.ts
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
75
76
// https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#list-notifications-for-the-authenticated-user
declare class GithubNotif {
id: string;
repository: GithubRepo;
subject: {
title: string;
url: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
latest_comment_url: string;
type: string;
};
reason: string;
unread: boolean;
// biome-ignore lint/style/useNamingConvention: not_by_me
updated_at: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
last_read_at: string | null;
url: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
subscription_url: string;
}
declare class GithubIssue {
title: string;
user: { login: string };
state: "open" | "closed";
// biome-ignore lint/style/useNamingConvention: not_by_me
state_reason?: "not_planned" | "completed";
comments: number;
draft: boolean;
// biome-ignore lint/style/useNamingConvention: not_by_me
full_name: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
open_issues: number;
number: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
html_url: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
repository_url: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
pull_request: { merged_at?: string };
// biome-ignore lint/style/useNamingConvention: not_by_me
created_at: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
updated_at: string;
labels: { name: string }[];
}
declare class GithubRepo {
// biome-ignore lint/style/useNamingConvention: not_by_me
full_name: string;
name: string;
description: string;
owner: {
login: string;
};
// biome-ignore lint/style/useNamingConvention: not_by_me
html_url: string;
homepage: string;
fork: boolean;
archived: boolean;
private: boolean;
// biome-ignore lint/style/useNamingConvention: not_by_me
is_template: boolean;
// biome-ignore lint/style/useNamingConvention: not_by_me
pushed_at: string;
// biome-ignore lint/style/useNamingConvention: not_by_me
stargazers_count: number;
// biome-ignore lint/style/useNamingConvention: not_by_me
open_issues: number;
// biome-ignore lint/style/useNamingConvention: not_by_me
forks_count: number;
}