Skip to content

Commit 9fcb3c8

Browse files
committed
Add missing properties to GHAsset and GHRelease (#2120)
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
1 parent 7c61987 commit 9fcb3c8

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

src/main/java/org/kohsuke/github/GHAsset.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public static GHAsset[] wrap(GHAsset[] assets, GHRelease release) {
3030

3131
private String browserDownloadUrl;
3232
private String contentType;
33+
private String digest;
3334
private long downloadCount;
3435
private String label;
3536
private String name;
3637
private long size;
3738
private String state;
39+
private GHUser uploader;
3840
/** The owner. */
3941
GHRepository owner;
4042

@@ -72,6 +74,15 @@ public String getContentType() {
7274
return contentType;
7375
}
7476

77+
/**
78+
* Gets the digest.
79+
*
80+
* @return the digest
81+
*/
82+
public String getDigest() {
83+
return digest;
84+
}
85+
7586
/**
7687
* Gets download count.
7788
*
@@ -127,6 +138,15 @@ public String getState() {
127138
return state;
128139
}
129140

141+
/**
142+
* Gets uploader.
143+
*
144+
* @return the uploader
145+
*/
146+
public GHPerson getUploader() {
147+
return uploader;
148+
}
149+
130150
/**
131151
* Sets content type.
132152
*

src/main/java/org/kohsuke/github/GHRelease.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ static GHRelease[] wrap(GHRelease[] releases, GHRepository owner) {
4343
private List<GHAsset> assets;
4444

4545
private String assetsUrl;
46+
private GHUser author;
4647
private String body;
48+
private String bodyHtml;
49+
private String bodyText;
4750
private String discussionUrl;
4851
private boolean draft;
4952
private String htmlUrl;
53+
private int mentionsCount;
5054
private String name;
5155
private boolean prerelease;
5256
private String publishedAt;
@@ -92,6 +96,15 @@ public String getAssetsUrl() {
9296
return assetsUrl;
9397
}
9498

99+
/**
100+
* Gets the author.
101+
*
102+
* @return the author
103+
*/
104+
public GHUser getAuthor() {
105+
return author;
106+
}
107+
95108
/**
96109
* Gets body.
97110
*
@@ -101,6 +114,24 @@ public String getBody() {
101114
return body;
102115
}
103116

117+
/**
118+
* Gets body html.
119+
*
120+
* @return the body html
121+
*/
122+
public String getBodyHtml() {
123+
return bodyHtml;
124+
}
125+
126+
/**
127+
* Gets body text.
128+
*
129+
* @return the body text
130+
*/
131+
public String getBodyText() {
132+
return bodyText;
133+
}
134+
104135
/**
105136
* Gets discussion url. Only present if a discussion relating to the release exists
106137
*
@@ -119,6 +150,10 @@ public URL getHtmlUrl() {
119150
return GitHubClient.parseURL(htmlUrl);
120151
}
121152

153+
public int getMentionsCount() {
154+
return this.mentionsCount;
155+
}
156+
122157
/**
123158
* Gets name.
124159
*

0 commit comments

Comments
 (0)