File tree Expand file tree Collapse file tree 1 file changed +108
-0
lines changed Expand file tree Collapse file tree 1 file changed +108
-0
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,86 @@ part of github.client;
3
3
class Release {
4
4
final GitHub github;
5
5
6
+ /**
7
+ * Url to this Release
8
+ */
6
9
@ApiName ("html_url" )
7
10
String url;
8
11
12
+ /**
13
+ * Tarball of the Repository Tree at the commit of this release.
14
+ */
9
15
@ApiName ("tarball_url" )
10
16
String tarballUrl;
11
17
18
+ /**
19
+ * ZIP of the Repository Tree at the commit of this release.
20
+ */
12
21
@ApiName ("zipball_url" )
13
22
String zipballUrl;
14
23
24
+ /**
25
+ * Release ID
26
+ */
15
27
int id;
16
28
29
+ /**
30
+ * Release Tag Name
31
+ */
17
32
@ApiName ("tag_name" )
18
33
String tagName;
19
34
35
+ /**
36
+ * Target Commit
37
+ */
20
38
@ApiName ("target_commitish" )
21
39
String targetCommitsh;
22
40
41
+ /**
42
+ * Release Name
43
+ */
23
44
String name;
45
+
46
+ /**
47
+ * Release Notes
48
+ */
24
49
String body;
50
+
51
+ /**
52
+ * Release Description
53
+ */
25
54
String description;
55
+
56
+ /**
57
+ * If the release is a draft.
58
+ */
26
59
bool draft;
60
+
61
+ /**
62
+ * If the release is a pre release.
63
+ */
27
64
bool prerelease;
28
65
66
+ /**
67
+ * The time this release was created at.
68
+ */
29
69
@ApiName ("created_at" )
30
70
DateTime createdAt;
31
71
72
+ /**
73
+ * The time this release was published at.
74
+ */
32
75
@ApiName ("published_at" )
33
76
DateTime publishedAt;
34
77
78
+ /**
79
+ * The author of this release.
80
+ */
35
81
User author;
36
82
83
+ /**
84
+ * Release Assets
85
+ */
37
86
List <ReleaseAsset > assets;
38
87
39
88
Release (this .github);
@@ -61,25 +110,58 @@ class Release {
61
110
class ReleaseAsset {
62
111
final GitHub github;
63
112
113
+ /**
114
+ * Url to download the asset.
115
+ */
64
116
@ApiName ("browser_download_url" )
65
117
String url;
66
118
119
+ /**
120
+ * Asset ID
121
+ */
67
122
int id;
123
+
124
+ /**
125
+ * Assert Name
126
+ */
68
127
String name;
128
+
129
+ /**
130
+ * Assert Label
131
+ */
69
132
String label;
133
+
134
+ /**
135
+ * Assert State
136
+ */
70
137
String state;
71
138
139
+ /**
140
+ * Assert Content Type
141
+ */
72
142
@ApiName ("content_type" )
73
143
String contentType;
74
144
145
+ /**
146
+ * Size of Asset
147
+ */
75
148
int size;
76
149
150
+ /**
151
+ * Number of Downloads
152
+ */
77
153
@ApiName ("download_count" )
78
154
int downloadCount;
79
155
156
+ /**
157
+ * Time the assert was created at
158
+ */
80
159
@ApiName ("created_at" )
81
160
DateTime createdAt;
82
161
162
+ /**
163
+ * Time the asset was last updated
164
+ */
83
165
@ApiName ("updated_at" )
84
166
DateTime updatedAt;
85
167
@@ -100,12 +182,38 @@ class ReleaseAsset {
100
182
}
101
183
}
102
184
185
+ /**
186
+ * A Request to Create a Release
187
+ */
103
188
class CreateReleaseRequest {
189
+ /**
190
+ * Tag Name to Base off of
191
+ */
104
192
final String tagName;
193
+
194
+ /**
195
+ * Commit to Target
196
+ */
105
197
String targetCommitish;
198
+
199
+ /**
200
+ * Release Name
201
+ */
106
202
String name;
203
+
204
+ /**
205
+ * Release Body
206
+ */
107
207
String body;
208
+
209
+ /**
210
+ * If the release is a draft
211
+ */
108
212
bool draft;
213
+
214
+ /**
215
+ * If the release should actually be released.
216
+ */
109
217
bool release;
110
218
111
219
CreateReleaseRequest (this .tagName);
You can’t perform that action at this time.
0 commit comments