mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2142 from hmacr/1we7-production-branch-for-github
Default to `providerBranch` for manual VCS re-deployment
This commit is contained in:
+4
-1
@@ -51,7 +51,10 @@
|
||||
.vcs.listRepositoryBranches($installation.$id, selectedRepository);
|
||||
|
||||
const sorted = sortBranches(branchList.branches);
|
||||
branch = sorted[0]?.name ?? null;
|
||||
|
||||
branch = sorted.find((b) => b.name === $func.providerBranch)
|
||||
? $func.providerBranch
|
||||
: (sorted[0]?.name ?? null);
|
||||
|
||||
if (!branch) {
|
||||
branch = 'main';
|
||||
|
||||
+4
-1
@@ -57,7 +57,10 @@
|
||||
.vcs.listRepositoryBranches($installation.$id, selectedRepository);
|
||||
|
||||
const sorted = sortBranches(branchList.branches);
|
||||
branch = sorted[0]?.name ?? null;
|
||||
|
||||
branch = sorted.find((b) => b.name === site.providerBranch)
|
||||
? site.providerBranch
|
||||
: (sorted[0]?.name ?? null);
|
||||
|
||||
if (!branch) {
|
||||
branch = 'main';
|
||||
|
||||
Reference in New Issue
Block a user