-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.cr
60 lines (56 loc) · 1.29 KB
/
apps.cr
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
module Octokit
module Models
struct App
Octokit.rest_model(
id: Int64,
node_id: String,
owner: User,
name: String,
description: String,
external_url: String,
html_url: String,
created_at: {type: Time, converter: Time::ISO8601Converter},
updated_at: String
)
end
struct InstallationToken
Octokit.rest_model(
token: String,
expires_at: String
)
end
struct InstallationPermissions
Octokit.rest_model(
metadata: String,
contents: String,
issues: String,
single_file: String
)
end
struct Installation
Octokit.rest_model(
id: Int64,
app_id: Int64,
target_id: Int64,
account: User,
access_tokens_url: String,
repositories_url: String,
html_url: String,
target_type: String,
single_file_name: String,
repository_selection: String,
events: Array(String),
permissions: InstallationPermissions,
created_at: {type: Time, converter: Time::ISO8601Converter},
updated_at: String
)
end
struct Attachment
Octokit.rest_model(
id: Int64,
title: String,
body: String
)
end
end
end