Migrate default branch to main in the plugins repository.

This is part of the effort to standardize the use of main branch as the
default across all the flutter repositories.

Bug: https://github.com/flutter/flutter/issues/90476
Change-Id: Ib18d4584b02080e2f40f77e5bac053e6cde9af45
Reviewed-on: https://flutter-review.googlesource.com/c/infra/+/24800
Reviewed-by: Stuart Morgan <stuartmorgan@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/config/generated/flutter/luci/cr-buildbucket.cfg b/config/generated/flutter/luci/cr-buildbucket.cfg
index c60b4be..6c76f52 100644
--- a/config/generated/flutter/luci/cr-buildbucket.cfg
+++ b/config/generated/flutter/luci/cr-buildbucket.cfg
@@ -8249,7 +8249,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -97652,7 +97652,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -101442,7 +101442,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -101615,7 +101615,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -101753,7 +101753,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -101890,7 +101890,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -101959,7 +101959,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": false,'
         '  "goma_jobs": "200",'
@@ -118531,7 +118531,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -143782,7 +143782,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -144590,7 +144590,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -144761,7 +144761,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -144897,7 +144897,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -145032,7 +145032,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
@@ -145100,7 +145100,7 @@
         '    }'
         '  ],'
         '  "device_type": "none",'
-        '  "git_branch": "master",'
+        '  "git_branch": "main",'
         '  "git_repo": "plugins",'
         '  "gold_tryjob": true,'
         '  "goma_jobs": "200",'
diff --git a/config/generated/flutter/luci/luci-milo.cfg b/config/generated/flutter/luci/luci-milo.cfg
index e309ac2..dcbf996 100644
--- a/config/generated/flutter/luci/luci-milo.cfg
+++ b/config/generated/flutter/luci/luci-milo.cfg
@@ -7148,7 +7148,7 @@
   id: "plugins_staging"
   name: "plugins_staging"
   repo_url: "https://flutter.googlesource.com/mirrors/plugins"
-  refs: "regexp:refs/heads/master"
+  refs: "regexp:refs/heads/main"
   manifest_name: "REVISION"
   favicon_url: "https://storage.googleapis.com/flutter_infra/favicon.ico"
 }
@@ -7156,7 +7156,7 @@
   id: "plugins"
   name: "plugins"
   repo_url: "https://flutter.googlesource.com/mirrors/plugins"
-  refs: "regexp:refs/heads/master"
+  refs: "regexp:refs/heads/main"
   manifest_name: "REVISION"
   builders {
     name: "buildbucket/luci.flutter.prod/Windows win32-platform_tests master"
diff --git a/config/generated/flutter/luci/luci-scheduler.cfg b/config/generated/flutter/luci/luci-scheduler.cfg
index 841efc3..74b6556 100644
--- a/config/generated/flutter/luci/luci-scheduler.cfg
+++ b/config/generated/flutter/luci/luci-scheduler.cfg
@@ -18557,6 +18557,22 @@
   }
 }
 trigger {
+  id: "main-gitiles-trigger-plugins"
+  realm: "prod"
+  acl_sets: "prod"
+  triggers: "Linux ci_yaml plugins roller"
+  triggers: "Windows plugin_tools_tests"
+  triggers: "Windows uwp-platform_tests master"
+  triggers: "Windows win32-platform_tests master"
+  triggers: "Windows win32-platform_tests stable"
+  triggers: "Windows windows-build_all_plugins master"
+  triggers: "Windows windows-build_all_plugins stable"
+  gitiles {
+    repo: "https://flutter.googlesource.com/mirrors/plugins"
+    refs: "regexp:refs/heads/main"
+  }
+}
+trigger {
   id: "master-gitiles-trigger-devicelab-staging"
   realm: "staging"
   acl_sets: "staging"
@@ -18944,22 +18960,6 @@
   }
 }
 trigger {
-  id: "master-gitiles-trigger-plugins"
-  realm: "prod"
-  acl_sets: "prod"
-  triggers: "Linux ci_yaml plugins roller"
-  triggers: "Windows plugin_tools_tests"
-  triggers: "Windows uwp-platform_tests master"
-  triggers: "Windows win32-platform_tests master"
-  triggers: "Windows win32-platform_tests stable"
-  triggers: "Windows windows-build_all_plugins master"
-  triggers: "Windows windows-build_all_plugins stable"
-  gitiles {
-    repo: "https://flutter.googlesource.com/mirrors/plugins"
-    refs: "regexp:refs/heads/master"
-  }
-}
-trigger {
   id: "recipes-gitiles-trigger"
   realm: "prod"
   acl_sets: "prod"
diff --git a/config/plugins_config.star b/config/plugins_config.star
index eb0cc31..0f8a9e2 100644
--- a/config/plugins_config.star
+++ b/config/plugins_config.star
@@ -14,7 +14,7 @@
 def _setup():
     """Set default configurations for builders, and setup recipes."""
     plugins_product_tagged_config_setup()
-    ci_yaml.generate("plugins", "master", None, "refs/heads/master", {}, {})
+    ci_yaml.generate("plugins", "main", None, "refs/heads/main", {}, {})
 
 def plugins_product_tagged_config_setup():
     """Builder configures for prod tasks, which were only triggered with tag changes."""