Disable pull and push until the branch diverges

This commit is contained in:
Mohamed Boudra
2026-06-07 14:21:32 +07:00
parent e1b27fc584
commit 69715a77e9
2 changed files with 38 additions and 0 deletions
+6
View File
@@ -616,6 +616,12 @@ function getPullAndPushUnavailableMessage(input: BuildGitActionsInput): string |
if (input.behindOfOrigin === 0 && input.aheadOfOrigin === 0) {
return "Pull and push isn't available because this branch is already in sync";
}
if (input.behindOfOrigin === 0) {
return "Pull and push isn't available because there are no incoming changes to pull first";
}
if (input.aheadOfOrigin === 0) {
return "Pull and push isn't available because there is nothing new to send after pulling";
}
return undefined;
}