You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Communicates with the GitHub API to determine the latest compatible release and download assets.
9
+
*/
7
10
exportclassReleasesApiConsumer{
8
11
constructor(
9
12
ownerName: string,
@@ -173,52 +176,27 @@ function isRedirectStatusCode(statusCode: number): boolean {
173
176
174
177
/**
175
178
* The json returned from github for a release.
179
+
* See https://docs.github.com/en/rest/releases/releases#get-a-release for example response and response schema.
180
+
*
181
+
* This type must match the format of the GitHub API and is not intended to be used outside of this file except for tests. Please use the `Release` type instead.
176
182
*/
177
-
interfaceGithubRelease{
183
+
exportinterfaceGithubRelease{
178
184
assets: GithubReleaseAsset[];
179
-
180
-
/**
181
-
* The creation date of the release on GitHub, in ISO 8601 format.
182
-
*/
183
185
created_at: string;
184
-
185
-
/**
186
-
* The id associated with the release on GitHub.
187
-
*/
188
186
id: number;
189
-
190
-
/**
191
-
* The name associated with the release on GitHub.
192
-
*/
193
187
name: string;
194
-
195
-
/**
196
-
* Whether the release is a prerelease.
197
-
*/
198
188
prerelease: boolean;
199
-
200
-
/**
201
-
* The tag name. This should be the version.
202
-
*/
203
189
tag_name: string;
204
190
}
205
191
206
192
/**
207
193
* The json returned by github for an asset in a release.
194
+
* See https://docs.github.com/en/rest/releases/releases#get-a-release for example response and response schema.
195
+
*
196
+
* This type must match the format of the GitHub API and is not intended to be used outside of this file except for tests. Please use the `ReleaseAsset` type instead.
0 commit comments