File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Filter options
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Original file line number Diff line number Diff line change 15
15
* Release in a github repository.
16
16
*
17
17
* @see GHRepository#getReleases() GHRepository#getReleases()
18
+ * @see GHRepository#listReleases() () GHRepository#listReleases()
18
19
* @see GHRepository#createRelease(String) GHRepository#createRelease(String)
19
20
*/
20
21
public class GHRelease extends GHObject {
@@ -23,6 +24,7 @@ public class GHRelease extends GHObject {
23
24
24
25
private String html_url ;
25
26
private String assets_url ;
27
+ private List <GHAsset > assets ;
26
28
private String upload_url ;
27
29
private String tag_name ;
28
30
private String target_commitish ;
@@ -252,15 +254,9 @@ public GHAsset uploadAsset(String filename, InputStream stream, String contentTy
252
254
* Gets assets.
253
255
*
254
256
* @return the assets
255
- * @throws IOException
256
- * the io exception
257
257
*/
258
- public List <GHAsset > getAssets () throws IOException {
259
- Requester builder = owner .root .createRequest ();
260
-
261
- return builder .withUrlPath (getApiTailUrl ("assets" ))
262
- .toIterable (GHAsset [].class , item -> item .wrap (this ))
263
- .toList ();
258
+ public List <GHAsset > getAssets () {
259
+ return assets ;
264
260
}
265
261
266
262
/**
You can’t perform that action at this time.
0 commit comments