From b5f2f5286ae72e24e13ad8745b523f769696b8e9 Mon Sep 17 00:00:00 2001 From: Will Schurman Date: Mon, 22 Jan 2024 10:38:13 -0800 Subject: [PATCH] [eas-cli] Support requireCommit for EAS Update (#2196) --- CHANGELOG.md | 2 ++ packages/eas-cli/src/commands/update/index.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd994bb66..ecc3566b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐ŸŽ‰ New features +- Support requireCommit for EAS Update. ([#2196](https://github.com/expo/eas-cli/pull/2196) by [@wschurman](https://github.com/wschurman)) + ### ๐Ÿ› Bug fixes ### ๐Ÿงน Chores diff --git a/packages/eas-cli/src/commands/update/index.ts b/packages/eas-cli/src/commands/update/index.ts index 8d6f902379..8d2c4536f8 100644 --- a/packages/eas-cli/src/commands/update/index.ts +++ b/packages/eas-cli/src/commands/update/index.ts @@ -4,6 +4,7 @@ import chalk from 'chalk'; import nullthrows from 'nullthrows'; import { ensureBranchExistsAsync } from '../../branch/queries'; +import { ensureRepoIsCleanAsync } from '../../build/utils/repository'; import { getUpdateGroupUrl } from '../../build/utils/url'; import { ensureChannelExistsAsync } from '../../channel/queries'; import EasCommand from '../../commandUtils/EasCommand'; @@ -188,6 +189,9 @@ export default class UpdatePublish extends EasCommand { enableJsonOutput(); } + await vcsClient.ensureRepoExistsAsync(); + await ensureRepoIsCleanAsync(vcsClient, nonInteractive); + const { exp: expPossiblyWithoutEasUpdateConfigured, projectId,