From 919cc8ae8f3581d43d8bd463f79c0e7a4a144ed6 Mon Sep 17 00:00:00 2001 From: keyonghan <54558023+keyonghan@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:23:50 -0800 Subject: [PATCH] Add null check when bumping github version (#3404) Same as https://github.com/flutter/cocoon/pull/3386 with a fix. --- auto_submit/lib/service/approver_service.dart | 2 +- auto_submit/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_submit/lib/service/approver_service.dart b/auto_submit/lib/service/approver_service.dart index 22ba63764..7798a528d 100644 --- a/auto_submit/lib/service/approver_service.dart +++ b/auto_submit/lib/service/approver_service.dart @@ -55,7 +55,7 @@ class ApproverService { // TODO(ricardoamador) this will need to be refactored to make this code more general and // not applicable to only flutter. await for (github.PullRequestReview review in reviews) { - if (review.user.login == 'fluttergithubbot' && review.state == 'APPROVED') { + if (review.user?.login == 'fluttergithubbot' && review.state == 'APPROVED') { // Already approved. return; } diff --git a/auto_submit/pubspec.yaml b/auto_submit/pubspec.yaml index 921bafd33..449bf8c64 100644 --- a/auto_submit/pubspec.yaml +++ b/auto_submit/pubspec.yaml @@ -13,7 +13,7 @@ environment: dependencies: appengine: 0.13.7 corsac_jwt: 1.0.0-nullsafety.1 - github: 9.20.0 + github: 9.22.0 googleapis: 11.4.0 googleapis_auth: 1.4.1 graphql: 5.2.0-beta.7