We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88a63f7 + 4dd3b65 commit 3088b73Copy full SHA for 3088b73
lib/src/common/model/pulls.dart
@@ -116,6 +116,9 @@ class PullRequest extends PullRequestInformation {
116
/// Pull Request ID
117
int id;
118
119
+ /// Pull Request Labels
120
+ List<IssueLabel> labels;
121
+
122
PullRequest() : super(true);
123
124
static PullRequest fromJSON(Map<String, dynamic> input) {
@@ -132,6 +135,10 @@ class PullRequest extends PullRequestInformation {
132
135
pr.additionsCount = input['additions'];
133
136
pr.deletionsCount = input['deletions'];
134
137
pr.changedFilesCount = input['changed_files'];
138
+ pr.labels = input['labels']
139
+ ?.cast<Map<String, dynamic>>()
140
+ ?.map<IssueLabel>(IssueLabel.fromJSON)
141
+ ?.toList();
142
return pr;
143
}
144
0 commit comments