Change pub roller bot to push to flutter-pub-roller-bot/flutter.git (#129844)
Fixes https://github.com/flutter/flutter/issues/129744 Part of https://github.com/flutter/flutter/issues/129847 Migrate the packages_autoroller script to push to flutter-pub-roller-bot/flutter.git, rather than fluttergithubbot/flutter.git.
This commit is contained in:
committed by
GitHub
parent
1153371a56
commit
67b7aa22c2
@@ -63,6 +63,7 @@ void main() {
|
||||
orgName: orgName,
|
||||
processManager: processManager,
|
||||
stdio: stdio,
|
||||
githubUsername: 'flutter-pub-roller-bot',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -199,7 +200,7 @@ void main() {
|
||||
'pr',
|
||||
'list',
|
||||
'--author',
|
||||
'fluttergithubbot',
|
||||
'flutter-pub-roller-bot',
|
||||
'--repo',
|
||||
'flutter/flutter',
|
||||
'--state',
|
||||
@@ -216,7 +217,7 @@ void main() {
|
||||
await controller.stream.drain();
|
||||
await rollFuture;
|
||||
expect(processManager, hasNoRemainingExpectations);
|
||||
expect(stdio.stdout, contains('fluttergithubbot already has open tool PRs'));
|
||||
expect(stdio.stdout, contains('flutter-pub-roller-bot already has open tool PRs'));
|
||||
expect(stdio.stdout, contains(r'[{number: 123}]'));
|
||||
});
|
||||
|
||||
@@ -239,7 +240,7 @@ void main() {
|
||||
'pr',
|
||||
'list',
|
||||
'--author',
|
||||
'fluttergithubbot',
|
||||
'flutter-pub-roller-bot',
|
||||
'--repo',
|
||||
'flutter/flutter',
|
||||
'--state',
|
||||
@@ -335,7 +336,7 @@ void main() {
|
||||
'pr',
|
||||
'list',
|
||||
'--author',
|
||||
'fluttergithubbot',
|
||||
'flutter-pub-roller-bot',
|
||||
'--repo',
|
||||
'flutter/flutter',
|
||||
'--state',
|
||||
@@ -427,7 +428,7 @@ void main() {
|
||||
'commit',
|
||||
'--message',
|
||||
'roll packages',
|
||||
'--author="fluttergithubbot <fluttergithubbot@gmail.com>"',
|
||||
'--author="flutter-pub-roller-bot <flutter-pub-roller-bot@google.com>"',
|
||||
]),
|
||||
const FakeCommand(command: <String>[
|
||||
'git',
|
||||
@@ -475,12 +476,11 @@ void main() {
|
||||
|
||||
group('command argument validations', () {
|
||||
const String tokenPath = '/path/to/token';
|
||||
const String mirrorRemote = 'https://githost.com/org/project';
|
||||
|
||||
test('validates that file exists at --token option', () async {
|
||||
await expectLater(
|
||||
() => run(
|
||||
<String>['--token', tokenPath, '--mirror-remote', mirrorRemote],
|
||||
<String>['--token', tokenPath],
|
||||
fs: fileSystem,
|
||||
processManager: processManager,
|
||||
),
|
||||
@@ -499,7 +499,7 @@ void main() {
|
||||
..writeAsStringSync('');
|
||||
await expectLater(
|
||||
() => run(
|
||||
<String>['--token', tokenPath, '--mirror-remote', mirrorRemote],
|
||||
<String>['--token', tokenPath],
|
||||
fs: fileSystem,
|
||||
processManager: processManager,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user