Skip to content

Commit ecc946e

Browse files
authored
Merge pull request #159 from jmagman/content-url
Add contents_url to PullRequestFile
2 parents fad98d2 + 84d80ab commit ecc946e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/common/model/pulls.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ class PullRequestFile {
297297
int changesCount;
298298
String blobUrl;
299299
String rawUrl;
300+
String contentsUrl;
300301
String patch;
301302

302303
static PullRequestFile fromJSON(Map<String, dynamic> input) {
@@ -309,6 +310,7 @@ class PullRequestFile {
309310
file.changesCount = input['changes'];
310311
file.blobUrl = input['blob_url'];
311312
file.rawUrl = input['raw_url'];
313+
file.contentsUrl = input['contents_url'];
312314
file.patch = input['patch'];
313315
return file;
314316
}

0 commit comments

Comments
 (0)