Skip to content

Commit e1dfca2

Browse files
committed
Document Release Models
1 parent d765834 commit e1dfca2

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

lib/src/client/releases.dart

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,86 @@ part of github.client;
33
class Release {
44
final GitHub github;
55

6+
/**
7+
* Url to this Release
8+
*/
69
@ApiName("html_url")
710
String url;
811

12+
/**
13+
* Tarball of the Repository Tree at the commit of this release.
14+
*/
915
@ApiName("tarball_url")
1016
String tarballUrl;
1117

18+
/**
19+
* ZIP of the Repository Tree at the commit of this release.
20+
*/
1221
@ApiName("zipball_url")
1322
String zipballUrl;
1423

24+
/**
25+
* Release ID
26+
*/
1527
int id;
1628

29+
/**
30+
* Release Tag Name
31+
*/
1732
@ApiName("tag_name")
1833
String tagName;
1934

35+
/**
36+
* Target Commit
37+
*/
2038
@ApiName("target_commitish")
2139
String targetCommitsh;
2240

41+
/**
42+
* Release Name
43+
*/
2344
String name;
45+
46+
/**
47+
* Release Notes
48+
*/
2449
String body;
50+
51+
/**
52+
* Release Description
53+
*/
2554
String description;
55+
56+
/**
57+
* If the release is a draft.
58+
*/
2659
bool draft;
60+
61+
/**
62+
* If the release is a pre release.
63+
*/
2764
bool prerelease;
2865

66+
/**
67+
* The time this release was created at.
68+
*/
2969
@ApiName("created_at")
3070
DateTime createdAt;
3171

72+
/**
73+
* The time this release was published at.
74+
*/
3275
@ApiName("published_at")
3376
DateTime publishedAt;
3477

78+
/**
79+
* The author of this release.
80+
*/
3581
User author;
3682

83+
/**
84+
* Release Assets
85+
*/
3786
List<ReleaseAsset> assets;
3887

3988
Release(this.github);
@@ -61,25 +110,58 @@ class Release {
61110
class ReleaseAsset {
62111
final GitHub github;
63112

113+
/**
114+
* Url to download the asset.
115+
*/
64116
@ApiName("browser_download_url")
65117
String url;
66118

119+
/**
120+
* Asset ID
121+
*/
67122
int id;
123+
124+
/**
125+
* Assert Name
126+
*/
68127
String name;
128+
129+
/**
130+
* Assert Label
131+
*/
69132
String label;
133+
134+
/**
135+
* Assert State
136+
*/
70137
String state;
71138

139+
/**
140+
* Assert Content Type
141+
*/
72142
@ApiName("content_type")
73143
String contentType;
74144

145+
/**
146+
* Size of Asset
147+
*/
75148
int size;
76149

150+
/**
151+
* Number of Downloads
152+
*/
77153
@ApiName("download_count")
78154
int downloadCount;
79155

156+
/**
157+
* Time the assert was created at
158+
*/
80159
@ApiName("created_at")
81160
DateTime createdAt;
82161

162+
/**
163+
* Time the asset was last updated
164+
*/
83165
@ApiName("updated_at")
84166
DateTime updatedAt;
85167

@@ -100,12 +182,38 @@ class ReleaseAsset {
100182
}
101183
}
102184

185+
/**
186+
* A Request to Create a Release
187+
*/
103188
class CreateReleaseRequest {
189+
/**
190+
* Tag Name to Base off of
191+
*/
104192
final String tagName;
193+
194+
/**
195+
* Commit to Target
196+
*/
105197
String targetCommitish;
198+
199+
/**
200+
* Release Name
201+
*/
106202
String name;
203+
204+
/**
205+
* Release Body
206+
*/
107207
String body;
208+
209+
/**
210+
* If the release is a draft
211+
*/
108212
bool draft;
213+
214+
/**
215+
* If the release should actually be released.
216+
*/
109217
bool release;
110218

111219
CreateReleaseRequest(this.tagName);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy