getBlob method
- RepositorySlug slug,
- String? sha
Fetches a blob from slug for a given sha.
API docs: https://developer.github.com/v3/git/blobs/#get-a-blob
Implementation
Future<GitBlob> getBlob(RepositorySlug slug, String? sha) => github.getJSON(
'/repos/${slug.fullName}/git/blobs/$sha',
convert: GitBlob.fromJson,
statusCode: StatusCodes.OK,
);