Fixed two minor issues for revert functionality not merging issue (#2094)
diff --git a/auto_submit/lib/service/validation_service.dart b/auto_submit/lib/service/validation_service.dart
index caf02cb..b25c693 100644
--- a/auto_submit/lib/service/validation_service.dart
+++ b/auto_submit/lib/service/validation_service.dart
@@ -199,7 +199,7 @@
if (revertValidationResult.result) {
// Approve the pull request automatically as it has been validated.
ApproverService approverService = ApproverService(config);
- approverService.revertApproval(messagePullRequest);
+ await approverService.revertApproval(messagePullRequest);
bool processed = await processMerge(config, result, messagePullRequest);
if (processed) {
@@ -207,7 +207,7 @@
}
log.info('Ack the processed message : $ackId.');
github.Issue issue = await githubService.createIssue(
- slug,
+ github.RepositorySlug('flutter', 'flutter'),
'Follow up review for revert pull request $prNumber',
'Revert request by author ${result.repository!.pullRequest!.author}',
);