getLatestRelease method
Lists the latest release for the specified repository.
API docs: https://developer.github.com/v3/repos/releases/#get-the-latest-release
Implementation
Future<Release> getLatestRelease(RepositorySlug slug) {
ArgumentError.checkNotNull(slug);
return github.getJSON<Map<String, dynamic>, Release>(
'/repos/${slug.fullName}/releases/latest',
convert: Release.fromJson,
statusCode: StatusCodes.OK,
);
}